From 312118f5a7a1a7537cfb20f61d9b408dfcf03e8c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 01:21:22 +0300 Subject: Add palette inheritance to guitable class. --- src/gui/widgets/guitable.cpp | 5 +++-- src/gui/widgets/guitable.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp index 9f0dc47e3..d661e23df 100644 --- a/src/gui/widgets/guitable.cpp +++ b/src/gui/widgets/guitable.cpp @@ -92,9 +92,10 @@ void GuiTableActionListener::action(const gcn::ActionEvent } -GuiTable::GuiTable(TableModel *const initial_model, const bool opacity) : +GuiTable::GuiTable(const Widget2 *const widget, + TableModel *const initial_model, const bool opacity) : gcn::Widget(), - Widget2(), + Widget2(widget), gcn::MouseListener(), gcn::KeyListener(), mLinewiseMode(false), diff --git a/src/gui/widgets/guitable.h b/src/gui/widgets/guitable.h index f7d5addb5..704276026 100644 --- a/src/gui/widgets/guitable.h +++ b/src/gui/widgets/guitable.h @@ -55,7 +55,8 @@ class GuiTable final : public gcn::Widget, friend class GuiTableActionListener; public: - GuiTable(TableModel *const initial_model = nullptr, + GuiTable(const Widget2 *const widget, + TableModel *const initial_model = nullptr, const bool opacity = true); A_DELETE_COPY(GuiTable) -- cgit v1.2.3-70-g09d2