summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/guitable.cpp12
-rw-r--r--src/gui/widgets/guitable.h14
2 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp
index 460fd4218..e3dda4162 100644
--- a/src/gui/widgets/guitable.cpp
+++ b/src/gui/widgets/guitable.cpp
@@ -97,16 +97,16 @@ GuiTable::GuiTable(const Widget2 *const widget,
Widget2(widget),
gcn::MouseListener(),
gcn::KeyListener(),
- mLinewiseMode(false),
- mWrappingEnabled(false),
- mOpaque(opacity),
mModel(nullptr),
- mSelectedRow(0),
- mSelectedColumn(0),
mTopWidget(nullptr),
mActionListeners(),
mBackgroundColor(getThemeColor(Theme::BACKGROUND)),
- mHighlightColor(getThemeColor(Theme::HIGHLIGHT))
+ mHighlightColor(getThemeColor(Theme::HIGHLIGHT)),
+ mSelectedRow(0),
+ mSelectedColumn(0),
+ mLinewiseMode(false),
+ mWrappingEnabled(false),
+ mOpaque(opacity)
{
setModel(initial_model);
setFocusable(true);
diff --git a/src/gui/widgets/guitable.h b/src/gui/widgets/guitable.h
index 2296df87b..0bd880c45 100644
--- a/src/gui/widgets/guitable.h
+++ b/src/gui/widgets/guitable.h
@@ -169,17 +169,11 @@ private:
int getRowForY(int y) const A_WARN_UNUSED; // -1 on error
int getColumnForX(int x) const A_WARN_UNUSED; // -1 on error
void recomputeDimensions();
- bool mLinewiseMode;
- bool mWrappingEnabled;
- bool mOpaque;
static float mAlpha;
TableModel *mModel;
- int mSelectedRow;
- int mSelectedColumn;
-
/** If someone moves a fresh widget to the top, we must display it. */
gcn::Widget *mTopWidget;
@@ -190,8 +184,14 @@ private:
* Holds the background color of the table.
*/
gcn::Color mBackgroundColor;
-
gcn::Color mHighlightColor;
+
+ int mSelectedRow;
+ int mSelectedColumn;
+
+ bool mLinewiseMode;
+ bool mWrappingEnabled;
+ bool mOpaque;
};
#endif // GUI_WIDGETS_GUITABLE_H