author | ulf69 <ulf69> | 2004-09-24 19:51:43 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-09-24 19:51:43 (UTC) |
commit | a884dac6f756b3702a10ae97aa8782e4d2a84b20 (patch) (side-by-side diff) | |
tree | 08e50146a3176848455db29e0c0ff0309c6f7b4c /pwmanager/pwmanager/pwmviewstyle.cpp | |
parent | ae069aa892b29a96a923e49254cc89e65d0393eb (diff) | |
download | kdepimpi-a884dac6f756b3702a10ae97aa8782e4d2a84b20.zip kdepimpi-a884dac6f756b3702a10ae97aa8782e4d2a84b20.tar.gz kdepimpi-a884dac6f756b3702a10ae97aa8782e4d2a84b20.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'pwmanager/pwmanager/pwmviewstyle.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/pwmviewstyle.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/pwmanager/pwmanager/pwmviewstyle.cpp b/pwmanager/pwmanager/pwmviewstyle.cpp index 67b5197..51d8f6c 100644 --- a/pwmanager/pwmanager/pwmviewstyle.cpp +++ b/pwmanager/pwmanager/pwmviewstyle.cpp @@ -25,7 +25,11 @@ #include "listviewpwm.h" #include "pwmview.h" #include "commentbox.h" - +#ifndef PWM_EMBEDDED +#include "configuration.h" +#else +#include "pwmprefs.h" +#endif PwMViewStyle::PwMViewStyle(QWidget *parent, const char *name) : QWidget(parent, name) @@ -37,6 +41,10 @@ PwMViewStyle::PwMViewStyle(QWidget *parent, const char *name) PwMViewStyle::~PwMViewStyle() { + //US ENH : load and store the size of the listviewcolumns + lv->saveLayout(conf()->getConfig(), "listview"); + conf()->getConfig()->sync(); + delete_ifnot_null(s0); delete_ifnot_null(s1); } @@ -79,6 +87,10 @@ void PwMViewStyle::initStyle(style_t style) lv->addColumn(i18n("URL"), 180); lv->addColumn(i18n("Launcher"), 120); v->tmpReEnableSort(); + + //US ENH : load and store the size of the listviewcolumns + lv->restoreLayout(conf()->getConfig(), "listview"); + resizeView(v->size()); v->updateView(); if (wasMaximized) { |