author | ulf69 <ulf69> | 2004-09-29 23:57:50 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-09-29 23:57:50 (UTC) |
commit | 1bcba53b99411b8af139c8c62d2a5b26ba4a4721 (patch) (side-by-side diff) | |
tree | 6bbe50d7df09e0da3cce98d34e0c2894155bf5a4 /pwmanager/pwmanager/pwmviewstyle_1.cpp | |
parent | 21e794339f8988d9c370bebec45f60f2918fb671 (diff) | |
download | kdepimpi-1bcba53b99411b8af139c8c62d2a5b26ba4a4721.zip kdepimpi-1bcba53b99411b8af139c8c62d2a5b26ba4a4721.tar.gz kdepimpi-1bcba53b99411b8af139c8c62d2a5b26ba4a4721.tar.bz2 |
optimization of the commentview. Coordinates are now stored at programend
Diffstat (limited to 'pwmanager/pwmanager/pwmviewstyle_1.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/pwmviewstyle_1.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pwmanager/pwmanager/pwmviewstyle_1.cpp b/pwmanager/pwmanager/pwmviewstyle_1.cpp index 8b2d6d3..374c698 100644 --- a/pwmanager/pwmanager/pwmviewstyle_1.cpp +++ b/pwmanager/pwmanager/pwmviewstyle_1.cpp @@ -54,7 +54,7 @@ PwMViewStyle_1::PwMViewStyle_1(PwMView *view) lv = new ListViewPwM(splitter2); commentBox = new CommentBox(splitter2); // set sizes and styles - commentBox->resize(commentBox->size().width(), 60); + //US commentBox->resize(commentBox->size().width(), 60); QValueList<int> sizes; #ifndef PWM_EMBEDDED sizes.push_back(INITIAL_CATEGORIES_WIDTH); @@ -63,7 +63,7 @@ PwMViewStyle_1::PwMViewStyle_1(PwMView *view) sizes.append(INITIAL_CATEGORIES_WIDTH); sizes.append(view->height() - INITIAL_CATEGORIES_WIDTH); #endif - splitter->setSizes(sizes); + //US splitter->setSizes(sizes); categoriesTitle->setAlignment(Qt::AlignHCenter); #ifndef PWM_EMBEDDED categoriesTitle->setFrameShape(QFrame::MenuBarPanel); @@ -131,6 +131,7 @@ void PwMViewStyle_1::restoreSettings(PWMPrefs* prefs) { //load and store the size of the listviewcolumns lv->restoreLayout(prefs->getConfig(), "listview"); + splitter->setSizes( prefs->mCategorySplitter ); splitter2->setSizes( prefs->mCommentSplitter ); } @@ -140,6 +141,7 @@ void PwMViewStyle_1::saveSettings(PWMPrefs* prefs) { //store the size of the listviewcolumns lv->saveLayout(prefs->getConfig(), "listview"); + prefs->mCategorySplitter = splitter->sizes(); prefs->mCommentSplitter = splitter2->sizes(); } |