author | sandman <sandman> | 2002-12-10 23:11:22 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-12-10 23:11:22 (UTC) |
commit | 967fa32fa3eb3296f675c9d7af8cce838c6b592b (patch) (side-by-side diff) | |
tree | 334c539769f0f8b5aacdf4ecbaadb21c7b5c6a4e /library | |
parent | 50c0db8b07915b6129d120f21a976cbdd54cccfe (diff) | |
download | opie-967fa32fa3eb3296f675c9d7af8cce838c6b592b.zip opie-967fa32fa3eb3296f675c9d7af8cce838c6b592b.tar.gz opie-967fa32fa3eb3296f675c9d7af8cce838c6b592b.tar.bz2 |
- small code cleanup
- finally we get rid of the "no image/text codecs" message at startup !!!
-rw-r--r-- | library/qpeapplication.cpp | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index b5dff3a..c41dd06 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -94,6 +94,6 @@ class QPEApplicationData public: - QPEApplicationData() : presstimer( 0 ), presswidget( 0 ), rightpressed( FALSE ), - kbgrabber( 0 ), kbregrab( FALSE ), notbusysent( FALSE ), preloaded( FALSE ), - forceshow( FALSE ), nomaximize( FALSE ), qpe_main_widget( 0 ), - keep_running( TRUE ) + QPEApplicationData() : presstimer( 0 ), presswidget( 0 ), kbgrabber( 0 ), + rightpressed( FALSE ), kbregrab( FALSE ), notbusysent( FALSE ), preloaded( FALSE ), + forceshow( FALSE ), nomaximize( FALSE ), keep_running( TRUE ), qpe_main_widget( 0 ) + { @@ -104,10 +104,13 @@ public: QWidget* presswidget; - QPoint presspos; -bool rightpressed : - 1; // AEH why not use uint foobar :1; if it's tt style -zecke int kbgrabber; -bool kbregrab : - 1; -bool notbusysent : - 1; + QPoint presspos; + + bool rightpressed : 1; + bool kbregrab : 1; + bool notbusysent : 1; + bool preloaded : 1; + bool forceshow : 1; + bool nomaximize : 1; + bool keep_running : 1; + QString appName; @@ -124,13 +127,5 @@ bool notbusysent : }; -bool preloaded : - 1; -bool forceshow : - 1; -bool nomaximize : - 1; QWidget* qpe_main_widget; -bool keep_running : - 1; QList<QCopRec> qcopq; - + void enqueueQCop( const QCString &ch, const QCString &msg, @@ -213,3 +208,5 @@ bool keep_running : QDir dir( path, "lib*.so" ); - QStringList list = dir.entryList(); + QStringList list; + if ( dir. exists ( )) + list = dir.entryList(); QStringList::Iterator it; @@ -236,3 +233,5 @@ bool keep_running : QDir dir( path, "lib*.so" ); - QStringList list = dir.entryList(); + QStringList list; + if ( dir. exists ( )) + list = dir.entryList(); QStringList::Iterator it; |