summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiesecurity/multiauthmainwindow.cpp2
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,45 +1,45 @@
1#include "multiauthmainwindow.h" 1#include "multiauthmainwindow.h"
2 2
3#include "multiauthcommon.h" 3#include "multiauthcommon.h"
4#include <qpe/config.h> 4#include <qpe/config.h>
5 5
6namespace Opie { 6namespace Opie {
7namespace Security { 7namespace Security {
8 8
9/// Initializes widgets according to allowBypass argument (false by default) and explanScreens config 9/// Initializes widgets according to allowBypass argument (false by default) and explanScreens config
10/** 10/**
11 * \note if allowBypass is true, we will show explanatory screens anyway 11 * \note if allowBypass is true, we will show explanatory screens anyway
12 */ 12 */
13MultiauthMainWindow::MultiauthMainWindow(bool allowBypass = false) 13MultiauthMainWindow::MultiauthMainWindow(bool allowBypass)
14 : QDialog(0, "main Opie multiauth modal dialog", TRUE, 14 : QDialog(0, "main Opie multiauth modal dialog", TRUE,
15 Qt::WStyle_NoBorder | Qt::WStyle_Customize | Qt::WStyle_StaysOnTop) 15 Qt::WStyle_NoBorder | Qt::WStyle_Customize | Qt::WStyle_StaysOnTop)
16 16
17{ 17{
18 alreadyDone = false; 18 alreadyDone = false;
19 // initializes widget pointers which not always point to an object 19 // initializes widget pointers which not always point to an object
20 quit = 0; 20 quit = 0;
21 message2 = 0; 21 message2 = 0;
22 22
23 if (allowBypass == true) 23 if (allowBypass == true)
24 explanScreens = true; 24 explanScreens = true;
25 else 25 else
26 { 26 {
27 Config *pcfg = new Config("Security"); 27 Config *pcfg = new Config("Security");
28 pcfg->setGroup("Misc"); 28 pcfg->setGroup("Misc");
29 explanScreens = pcfg->readBoolEntry("explanScreens", true); 29 explanScreens = pcfg->readBoolEntry("explanScreens", true);
30 delete pcfg; 30 delete pcfg;
31 } 31 }
32 32
33 layout = new QVBoxLayout(this); 33 layout = new QVBoxLayout(this);
34 layout->setSpacing(11); 34 layout->setSpacing(11);
35 layout->setMargin(11); 35 layout->setMargin(11);
36 layout->setAlignment( Qt::AlignTop ); 36 layout->setAlignment( Qt::AlignTop );
37 37
38 // if explanScreens is false, we don't show any text in the QDialog, 38 // if explanScreens is false, we don't show any text in the QDialog,
39 // and we proceed directly 39 // and we proceed directly
40 if ( explanScreens == true ) 40 if ( explanScreens == true )
41 { 41 {
42 title = new QLabel("<center><h1>" + tr("Welcome to Opie Multi-authentication Framework") + "</h1></center>", this); 42 title = new QLabel("<center><h1>" + tr("Welcome to Opie Multi-authentication Framework") + "</h1></center>", this);
43 message = new QLabel("<center><h3>" + tr("Launching authentication plugins...") + "</h3></center>", this); 43 message = new QLabel("<center><h3>" + tr("Launching authentication plugins...") + "</h3></center>", this);
44 } else { 44 } else {
45 title = new QLabel("", this); 45 title = new QLabel("", this);