Diffstat (limited to 'pwmanager/pwmanager/pwmviewstyle_0.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/pwmviewstyle_0.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pwmanager/pwmanager/pwmviewstyle_0.cpp b/pwmanager/pwmanager/pwmviewstyle_0.cpp index 1d88a34..3d1f41f 100644 --- a/pwmanager/pwmanager/pwmviewstyle_0.cpp +++ b/pwmanager/pwmanager/pwmviewstyle_0.cpp | |||
@@ -26,13 +26,16 @@ | |||
26 | #include <kglobal.h> | 26 | #include <kglobal.h> |
27 | #include <kiconloader.h> | 27 | #include <kiconloader.h> |
28 | #include "pwmprefs.h" | 28 | #include "pwmprefs.h" |
29 | //Added by qt3to4: | ||
30 | #include <QLabel> | ||
31 | #include <Q3ValueList> | ||
29 | 32 | ||
30 | PwMViewStyle_0::PwMViewStyle_0(PwMView *view) | 33 | PwMViewStyle_0::PwMViewStyle_0(PwMView *view) |
31 | : QObject() | 34 | : QObject() |
32 | { | 35 | { |
33 | vbox1 = new QVBox(view); | 36 | vbox1 = new Q3VBox(view); |
34 | vbox1->setSpacing(0); | 37 | vbox1->setSpacing(0); |
35 | hbox1 = new QHBox(vbox1); | 38 | hbox1 = new Q3HBox(vbox1); |
36 | hbox1->setSpacing(0); | 39 | hbox1->setSpacing(0); |
37 | categoriesTitle = new QLabel(hbox1); | 40 | categoriesTitle = new QLabel(hbox1); |
38 | categoriesTitle->setText(i18n("Category:")); | 41 | categoriesTitle->setText(i18n("Category:")); |
@@ -46,8 +49,8 @@ PwMViewStyle_0::PwMViewStyle_0(PwMView *view) | |||
46 | delCatButton->setPixmap (KGlobal::iconLoader()->loadIcon("editdelete", KIcon::Small) ); | 49 | delCatButton->setPixmap (KGlobal::iconLoader()->loadIcon("editdelete", KIcon::Small) ); |
47 | maxsi = delCatButton->sizeHint().height()+4; | 50 | maxsi = delCatButton->sizeHint().height()+4; |
48 | delCatButton->setMinimumSize( maxsi, maxsi ); | 51 | delCatButton->setMinimumSize( maxsi, maxsi ); |
49 | delCatButton->setFocusPolicy( QWidget::NoFocus ); | 52 | delCatButton->setFocusPolicy( Qt::NoFocus ); |
50 | renCatButton->setFocusPolicy( QWidget::NoFocus ); | 53 | renCatButton->setFocusPolicy( Qt::NoFocus ); |
51 | 54 | ||
52 | #ifndef PWM_EMBEDDED | 55 | #ifndef PWM_EMBEDDED |
53 | splitter1 = new QSplitter(vbox1); | 56 | splitter1 = new QSplitter(vbox1); |
@@ -81,9 +84,9 @@ PwMViewStyle_0::~PwMViewStyle_0() | |||
81 | void PwMViewStyle_0::toggleSplitter() | 84 | void PwMViewStyle_0::toggleSplitter() |
82 | { | 85 | { |
83 | 86 | ||
84 | QValueList<int> si = splitter1->sizes(); | 87 | Q3ValueList<int> si = splitter1->sizes(); |
85 | splitter1->toggle(); | 88 | splitter1->toggle(); |
86 | QValueList<int> si2 = splitter1->sizes(); | 89 | Q3ValueList<int> si2 = splitter1->sizes(); |
87 | //qDebug("PwMViewStyle_0::toggleSplitter() %d %d %d %d", si[0],si[1],si2[0],si2[1] ); | 90 | //qDebug("PwMViewStyle_0::toggleSplitter() %d %d %d %d", si[0],si[1],si2[0],si2[1] ); |
88 | if ( si[0] == si2[0] && si[1] == si2[1] && si2[1] == 1 ) { | 91 | if ( si[0] == si2[0] && si[1] == si2[1] && si2[1] == 1 ) { |
89 | int diff = si[0]/2; | 92 | int diff = si[0]/2; |