summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/pwminit.cpp
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/pwminit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwminit.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/pwmanager/pwmanager/pwminit.cpp b/pwmanager/pwmanager/pwminit.cpp
index d59d4d8..15e21ee 100644
--- a/pwmanager/pwmanager/pwminit.cpp
+++ b/pwmanager/pwmanager/pwminit.cpp
@@ -17,12 +17,14 @@
* $Id$
**************************************************************************/
#include "pwminit.h"
#include "randomizer.h"
#include <qdir.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#ifndef PWM_EMBEDDED
#include "selftest.h"
#include "configuration.h"
#else
#include "pwmprefs.h"
@@ -89,18 +91,18 @@ PwMInit::PwMInit(PwMApplication *_app)
PwMInit::~PwMInit()
{
//qDebug("PwMInit::~PwMInit() ");
#ifndef PWM_EMBEDDED
SelfTest::cancel();
// close all open mainwnds
- QValueList<PwM *>::iterator i = _mainWndList.begin(),
+ Q3ValueList<PwM *>::iterator i = _mainWndList.begin(),
end = _mainWndList.end();
#else
// close all open mainwnds
- QValueList<PwM *>::Iterator i = _mainWndList.begin(),
+ Q3ValueList<PwM *>::Iterator i = _mainWndList.begin(),
end = _mainWndList.end();
#endif
while (i != end) {
disconnect(*i, SIGNAL(closed(PwM *)),
this, SLOT(mainWndClosed(PwM *)));
delete *i;
@@ -423,17 +425,17 @@ again:
createMainWnd(QString::null, false,
false, wnd->curDoc());
}
}
#ifndef PWM_EMBEDDED
// find the closed window in the "mainWndList" and delete it.
- QValueList<PwM *>::iterator i = _mainWndList.begin(),
+ Q3ValueList<PwM *>::iterator i = _mainWndList.begin(),
end = _mainWndList.end();
#else
// find the closed window in the "mainWndList" and delete it.
- QValueList<PwM *>::Iterator i = _mainWndList.begin(),
+ Q3ValueList<PwM *>::Iterator i = _mainWndList.begin(),
end = _mainWndList.end();
#endif
while (i != end) {
//qDebug("iii %x end %x wnd %x", (*i), (*end), wnd);
if (*i == wnd) {
#ifndef PWM_EMBEDDED
@@ -570,18 +572,18 @@ void PwMInit::minimizeAllMainWnd(bool toTray)
if (!_mainWndList.size())
return;
#else
if (!_mainWndList.count())
return;
#endif
- const QValueList<PwM *> *ml = mainWndList();
+ const Q3ValueList<PwM *> *ml = mainWndList();
#ifndef PWM_EMBEDDED
- QValueList<PwM *>::const_iterator it = ml->begin(),
+ Q3ValueList<PwM *>::const_iterator it = ml->begin(),
end = ml->end();
#else
- QValueList<PwM *>::ConstIterator it = ml->begin(),
+ Q3ValueList<PwM *>::ConstIterator it = ml->begin(),
end = ml->end();
#endif
PwM *wnd;
if (toTray && _tray) {
/* minimize to tray.
* close all mainWnd.
@@ -621,13 +623,12 @@ PwMApplication::~PwMApplication()
#else //DESKTOP_VERSION
PwMApplication::PwMApplication(int & argc, char ** argv)
: QApplication( argc, argv )
, init (0)
{
- setStyle( new QPlatinumStyle ());
QString hdir = QDir::homeDirPath();
// there is a bug when creating dirs for WIN 98
// it is difficult to fix, because we have no WIN 98 runnung
// such that we try it to create the dirs at startup here
if ( hdir == "C:\\" )
{
@@ -653,9 +654,9 @@ PwMApplication::~PwMApplication()
#endif //PWM_EMBEDDED
-#ifndef PWM_EMBEDDED
-#include "pwminit.moc"
+#ifndef PWM_EMBEDDED_
+#include "moc_pwminit.cpp"
#endif