diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-03-28 14:39:13 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-03-28 14:39:13 +0000 |
commit | 4bb062264d9f6b1840d83eae52c53f366d8902ed (patch) | |
tree | 1f119f2704010a2b00befcf69181f94ac80fa307 /keymgmt.cpp | |
parent | icon style settings added and icon settings are also used by key management (diff) | |
download | gpg4usb-4bb062264d9f6b1840d83eae52c53f366d8902ed.tar.gz gpg4usb-4bb062264d9f6b1840d83eae52c53f366d8902ed.zip |
settings are taken instantly. No program restart necessary.
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@287 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keymgmt.cpp')
-rwxr-xr-x | keymgmt.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/keymgmt.cpp b/keymgmt.cpp index 371b27d..45e23fd 100755 --- a/keymgmt.cpp +++ b/keymgmt.cpp @@ -39,11 +39,12 @@ KeyMgmt::KeyMgmt(GpgME::Context *ctx, QString iconpath) createActions(); createMenus(); createToolBars(); + + /* Restore the iconstyle */ QSettings settings; QSize iconSize = settings.value("toolbar/iconsize", QSize(32, 32)).toSize(); Qt::ToolButtonStyle buttonStyle = static_cast<Qt::ToolButtonStyle>(settings.value("toolbar/iconstyle", Qt::ToolButtonTextUnderIcon).toUInt()); - - setIconSize(iconSize); + setIconSize(iconSize); setToolButtonStyle(buttonStyle); setWindowTitle(tr("Keymanagement")); |