aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-07-13 13:14:23 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2013-07-29 16:22:46 +0200
commitc431e9f1f03023d216db0ff48d3d598e705c97f9 (patch)
tree6132628aa34888e6e9af93982c77d8afcff2f045 /src/qt/guiutil.h
parentc4316fefa5f56d62eeceb710ee18313bd9be1128 (diff)
Bitcoin-Qt: save and restore position of debug window
- move the code for saving and restoring window positions from BitcoinGUI to GUIUtil, make it more generic and also use it for saving/restoring debug window positions
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r--src/qt/guiutil.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
index e2c7d18aa2..ca3e7fe91d 100644
--- a/src/qt/guiutil.h
+++ b/src/qt/guiutil.h
@@ -96,6 +96,11 @@ namespace GUIUtil
bool GetStartOnSystemStartup();
bool SetStartOnSystemStartup(bool fAutoStart);
+ /** Save window size and position */
+ void saveWindowGeometry(const QString& strSetting, QWidget *parent);
+ /** Restore window size and position */
+ void restoreWindowGeometry(const QString& strSetting, const QSize &defaultSizeIn, QWidget *parent);
+
/** Help message for Bitcoin-Qt, shown with --help. */
class HelpMessageBox : public QMessageBox
{