From 9df3fdc2a099fd30731d171c3f59d40f6336d366 Mon Sep 17 00:00:00 2001 From: Dubslow Date: Thu, 27 Nov 2014 16:35:56 -0600 Subject: [PATCH] move new functions to a more logical location --- src/widget/widget.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index bc39991c5..ccb2f24e5 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -1014,17 +1014,6 @@ void Widget::removeGroup(Group* g, bool fake) contactListWidget->show(); } -void Widget::saveWindowGeometry() -{ - Settings::getInstance().setWindowGeometry(saveGeometry()); - Settings::getInstance().setWindowState(saveState()); -} - -void Widget::saveSplitterGeometry() -{ - Settings::getInstance().setSplitterState(ui->mainSplitter->saveState()); -} - void Widget::removeGroup(int groupId) { removeGroup(GroupList::findGroup(groupId)); @@ -1174,6 +1163,17 @@ void Widget::onSetShowSystemTray(bool newValue){ icon->setVisible(newValue); } +void Widget::saveWindowGeometry() +{ + Settings::getInstance().setWindowGeometry(saveGeometry()); + Settings::getInstance().setWindowState(saveState()); +} + +void Widget::saveSplitterGeometry() +{ + Settings::getInstance().setSplitterState(ui->mainSplitter->saveState()); +} + void Widget::onSplitterMoved(int pos, int index) { Q_UNUSED(pos);