summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/setmasterpwwnd_emb.cpp
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/setmasterpwwnd_emb.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/setmasterpwwnd_emb.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/pwmanager/pwmanager/setmasterpwwnd_emb.cpp b/pwmanager/pwmanager/setmasterpwwnd_emb.cpp
index e6471e6..c5fd4e4 100644
--- a/pwmanager/pwmanager/setmasterpwwnd_emb.cpp
+++ b/pwmanager/pwmanager/setmasterpwwnd_emb.cpp
@@ -31,6 +31,9 @@ $Id$
#include <qlabel.h>
#include <qlineedit.h>
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
+#include <Q3GridLayout>
#include <klocale.h>
@@ -57,7 +60,7 @@ setMasterPwWnd::setMasterPwWnd( QWidget* parent, const char* name )
KDialogBase::Ok, parent, name, true )
{
QWidget *page = plainPage();
- QVBoxLayout *pageLayout = new QVBoxLayout( page );
+ Q3VBoxLayout *pageLayout = new Q3VBoxLayout( page );
mainTab = new QTabWidget( page );
pageLayout->addWidget( mainTab );
@@ -70,12 +73,12 @@ setMasterPwWnd::setMasterPwWnd( QWidget* parent, const char* name )
// This is the Password tab1
tab = new QWidget( mainTab );
- QGridLayout *layout = new QGridLayout( tab, 5, 1 );
+ Q3GridLayout *layout = new Q3GridLayout( tab, 5, 1 );
layout->setMargin( KDialogBase::marginHint() );
layout->setSpacing( KDialogBase::spacingHint() );
QLabel* label = new QLabel( i18n( "Using a normal password-string to encrypt the data." ), tab );
- label->setAlignment( int( QLabel::WordBreak | QLabel::AlignCenter ) );
+ label->setAlignment( int( Qt::WordBreak | Qt::AlignCenter ) );
layout->addWidget(label, 0, 0);
pwEdit_1 = new QLineEdit( tab, "pwEdit_1" );
@@ -99,16 +102,16 @@ setMasterPwWnd::setMasterPwWnd( QWidget* parent, const char* name )
// This is the Password tab2
tab_2 = new QWidget( mainTab );
- layout = new QGridLayout( tab_2, 5, 1 );
+ layout = new Q3GridLayout( tab_2, 5, 1 );
layout->setMargin( KDialogBase::marginHint() );
layout->setSpacing( KDialogBase::spacingHint() );
label = new QLabel( i18n( "Using a PwM key-card to encrypt the data." ), tab_2 );
- label->setAlignment( int( QLabel::WordBreak | QLabel::AlignCenter ) );
+ label->setAlignment( int( Qt::WordBreak | Qt::AlignCenter ) );
layout->addWidget(label, 0, 0);
label = new QLabel( i18n( "selected card:" ), tab_2 );
- label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ label->setAlignment( int( Qt::AlignVCenter | Qt::AlignRight ) );
layout->addWidget(label, 1, 0);
selCardButton = new QPushButton( i18n( "&Select the currently inserted card as key-card" ), tab_2 );