author | zautrix <zautrix> | 2004-10-30 17:07:04 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-30 17:07:04 (UTC) |
commit | 28df10a0eb5ff343191755a06391bc6ce2fd84b0 (patch) (side-by-side diff) | |
tree | 930882e7400006887d68fd434939e3a376b8631b | |
parent | c8662dc632987a317386b923e24acb9507859528 (diff) | |
download | kdepimpi-28df10a0eb5ff343191755a06391bc6ce2fd84b0.zip kdepimpi-28df10a0eb5ff343191755a06391bc6ce2fd84b0.tar.gz kdepimpi-28df10a0eb5ff343191755a06391bc6ce2fd84b0.tar.bz2 |
ompi fixes
-rw-r--r-- | kmicromail/composemailui.ui | 11 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/libmailwrapper.pro | 2 | ||||
-rw-r--r-- | kmicromail/mainwindow.cpp | 3 | ||||
-rw-r--r-- | kmicromail/opiemail.cpp | 26 | ||||
-rw-r--r-- | kmicromail/qpe/qdialog.h | 8 | ||||
-rw-r--r-- | kmicromail/qpe/qdialog_hacked.cpp | 5 | ||||
-rw-r--r-- | microkde/kapplication.cpp | 4 |
7 files changed, 38 insertions, 21 deletions
diff --git a/kmicromail/composemailui.ui b/kmicromail/composemailui.ui index c66b0c8..029922c 100644 --- a/kmicromail/composemailui.ui +++ b/kmicromail/composemailui.ui @@ -13,9 +13,16 @@ <x>0</x> <y>0</y> - <width>276</width> - <height>263</height> + <width>579</width> + <height>476</height> </rect> </property> <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>7</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> <name>caption</name> <string>Compose Message</string> diff --git a/kmicromail/libmailwrapper/libmailwrapper.pro b/kmicromail/libmailwrapper/libmailwrapper.pro index 10d45b1..0919cd2 100644 --- a/kmicromail/libmailwrapper/libmailwrapper.pro +++ b/kmicromail/libmailwrapper/libmailwrapper.pro @@ -36,5 +36,5 @@ SOURCES = imapwrapper.cpp \ generatemail.cpp \ storemail.cpp \ - ./qpe/qdialog_hacked.cpp \ + ../qpe/qdialog_hacked.cpp \ ../qpe/global.cpp diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 7655385..4115276 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp @@ -180,4 +180,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); li->addTo(helpMenu); +#ifdef DESKTOP_VERSION + resize ( 640, 480 ); +#endif } diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index e088b9e..ca3faaf 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp @@ -3,4 +3,5 @@ #include "koprefsdialog.h" +#include <kapplication.h> #include <libkdepim/externalapphandler.h> #include <libkdepim/kpimglobalprefs.h> @@ -32,9 +33,4 @@ #include <libmailwrapper/mailtypes.h> #include <libmailwrapper/abstractmail.h> -/* OPIE */ -//#include <qpe/resource.h> -//#include <qpe/qpeapplication.h> - -/* QT */ //using namespace Opie::Core; @@ -222,12 +218,12 @@ void OpieMail::slotSearchMails() void OpieMail::slotEditSettings() { -#if 0 - SettingsDialog settingsDialog( this, 0, true, WStyle_ContextHelp ); - settingsDialog.showMaximized(); - settingsDialog.exec(); -#endif + KOPrefsDialog settingsDialog( this, "koprefs", true ); +#ifndef DESKTOP_VERSION settingsDialog.showMaximized(); +#endif settingsDialog.exec(); + + // KApplication::execDialog(settingsDialog); } @@ -236,5 +232,7 @@ void OpieMail::slotEditAccounts() EditAccounts eaDialog( settings, this, 0, true ); eaDialog.slotAdjustColumns(); +#ifndef DESKTOP_VERSION eaDialog.showMaximized(); +#endif eaDialog.exec(); if ( settings ) delete settings; @@ -253,5 +251,9 @@ void OpieMail::displayMail() readMail.setBody( body ); readMail.setMail( mail ); +#ifndef DESKTOP_VERSION readMail.showMaximized(); +#else + readMail.resize( 640, 480); +#endif readMail.exec(); @@ -473,5 +475,9 @@ void OpieMail::reEditMail() compose.reEditMail(((MailListViewItem*)mailView->currentItem() )->data()); compose.slotAdjustColumns(); +#ifndef DESKTOP_VERSION compose.showMaximized(); +#else + compose.resize(640,480); +#endif compose.exec(); } diff --git a/kmicromail/qpe/qdialog.h b/kmicromail/qpe/qdialog.h index d671e34..aafdf80 100644 --- a/kmicromail/qpe/qdialog.h +++ b/kmicromail/qpe/qdialog.h @@ -6,5 +6,6 @@ #warning call of include <qdialog.h> #warning including /usr/local/qt/include/qdialog.h -#warning if you get an compiling error please adjust your path her +#warning if you get a compiling error +#warning please adjust your path here! #include "/usr/local/qt/include/qdialog.h" @@ -27,8 +28,5 @@ class QDialog_hacked : public QDialog #warning ****************************************** #warning ****************************************** -#warning ****************************************** -#warning ****************************************** -#warning ****************************************** -#warning ****************************************** +#warning "/usr/local/qt/include/qdialog.h" for KDialog #include "/usr/local/qt/include/qdialog.h" diff --git a/kmicromail/qpe/qdialog_hacked.cpp b/kmicromail/qpe/qdialog_hacked.cpp index e2ce21a..3669312 100644 --- a/kmicromail/qpe/qdialog_hacked.cpp +++ b/kmicromail/qpe/qdialog_hacked.cpp @@ -8,5 +8,5 @@ #endif QDialog_hacked::QDialog_hacked ( QWidget * parent, const char * name, bool modal, WFlags f ) - : QDialog( parent,name,modal) + : QDialog( parent,name,modal, f) { qDebug("******************** "); @@ -14,5 +14,5 @@ qDebug("******************** "); qDebug("******************** "); - qDebug("New hacked QDialog == KDialogBase "); + qDebug("New hacked QDialog for ompi "); //QTimer::singleShot( 1, this,SLOT(addaddbuttons()) ); @@ -25,4 +25,5 @@ connect ( ok, SIGNAL ( clicked()),this, SLOT (accept() ) ); connect ( cancel, SIGNAL ( clicked()),this, SLOT (reject() ) ); + //setWFlags(WStyle_MinMax ); } diff --git a/microkde/kapplication.cpp b/microkde/kapplication.cpp index 56c01af..d6f556d 100644 --- a/microkde/kapplication.cpp +++ b/microkde/kapplication.cpp @@ -37,9 +37,11 @@ int KApplication::execDialog( QDialog* d ) if (QApplication::desktop()->width() <= 640 ) d->showMaximized(); + else + ;//d->resize( 800, 600 ); return d->exec(); } void KApplication::showLicence() { - KApplication::showFile( "KDE-Pim/Pi licence", "kdepim/LICENCE.TXT" ); + KApplication::showFile( "KDE-Pim/Pi licence", "kdepim/licence.txt" ); } |