author | mickeyl <mickeyl> | 2004-10-07 12:43:19 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-10-07 12:43:19 (UTC) |
commit | 627c27e2559b3b67983b37912170ddc5bca84b1b (patch) (side-by-side diff) | |
tree | dc7fd1f3355f77713432db7352ade3fbc144b372 | |
parent | 5f3114e98ba6732127a6ac4c8cdcf0af3ff1f259 (diff) | |
download | opie-627c27e2559b3b67983b37912170ddc5bca84b1b.zip opie-627c27e2559b3b67983b37912170ddc5bca84b1b.tar.gz opie-627c27e2559b3b67983b37912170ddc5bca84b1b.tar.bz2 |
the usual iso c++ fix
-rw-r--r-- | libopie2/opiesecurity/multiauthmainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiesecurity/multiauthmainwindow.cpp b/libopie2/opiesecurity/multiauthmainwindow.cpp index 6404811..8440b87 100644 --- a/libopie2/opiesecurity/multiauthmainwindow.cpp +++ b/libopie2/opiesecurity/multiauthmainwindow.cpp @@ -1,61 +1,61 @@ #include "multiauthmainwindow.h" #include "multiauthcommon.h" #include <qpe/config.h> namespace Opie { namespace Security { /// Initializes widgets according to allowBypass argument (false by default) and explanScreens config /** * \note if allowBypass is true, we will show explanatory screens anyway */ -MultiauthMainWindow::MultiauthMainWindow(bool allowBypass = false) +MultiauthMainWindow::MultiauthMainWindow(bool allowBypass) : QDialog(0, "main Opie multiauth modal dialog", TRUE, Qt::WStyle_NoBorder | Qt::WStyle_Customize | Qt::WStyle_StaysOnTop) { alreadyDone = false; // initializes widget pointers which not always point to an object quit = 0; message2 = 0; if (allowBypass == true) explanScreens = true; else { Config *pcfg = new Config("Security"); pcfg->setGroup("Misc"); explanScreens = pcfg->readBoolEntry("explanScreens", true); delete pcfg; } layout = new QVBoxLayout(this); layout->setSpacing(11); layout->setMargin(11); layout->setAlignment( Qt::AlignTop ); // if explanScreens is false, we don't show any text in the QDialog, // and we proceed directly if ( explanScreens == true ) { title = new QLabel("<center><h1>" + tr("Welcome to Opie Multi-authentication Framework") + "</h1></center>", this); message = new QLabel("<center><h3>" + tr("Launching authentication plugins...") + "</h3></center>", this); } else { title = new QLabel("", this); message = new QLabel("", this); } layout->addWidget(title); layout->addWidget(message); proceedButton = new QPushButton(tr("Proceed..."), this); layout->addWidget(proceedButton, 0, Qt::AlignHCenter); QObject::connect(proceedButton, SIGNAL(clicked()), this, SLOT(proceed())); if ( explanScreens == true ) { quit = new QPushButton("Exit", this); layout->addWidget(quit, 0, Qt::AlignHCenter); if ( allowBypass == true ) { |