author | zautrix <zautrix> | 2004-09-03 17:42:58 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-03 17:42:58 (UTC) |
commit | 14399c0c21955d30b2d69684e0cf11edb9fd9b63 (patch) (side-by-side diff) | |
tree | d67641ad53f6cb5a995c0d71e53c9ce1b5290cf8 | |
parent | 2c4701b1c272ac82a457001be72ecb7fcfd09f22 (diff) | |
download | kdepimpi-14399c0c21955d30b2d69684e0cf11edb9fd9b63.zip kdepimpi-14399c0c21955d30b2d69684e0cf11edb9fd9b63.tar.gz kdepimpi-14399c0c21955d30b2d69684e0cf11edb9fd9b63.tar.bz2 |
Implemented a feature request
-rw-r--r-- | korganizer/mainwindow.cpp | 8 | ||||
-rw-r--r-- | korganizer/mainwindow.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 4b00062..d4fadcb 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -202,32 +202,40 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : } //US listen for result adressed from Ka/Pi connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); } MainWindow::~MainWindow() { //qDebug("MainWindow::~MainWindow() "); //save toolbar location delete mCalendar; delete KOPrefs::instance(); delete KIncidenceFormatter::instance(); } +void MainWindow::showMaximized () +{ +#ifndef DESKTOP_VERSION + if ( ! globalFlagBlockStartup ) + mView->goToday(); +#endif + QWidget::showMaximized () ; +} void MainWindow::closeEvent( QCloseEvent* ce ) { if ( ! KOPrefs::instance()->mAskForQuit ) { saveOnClose(); ce->accept(); return; } switch( QMessageBox::information( this, "KO/Pi", i18n("Do you really want\nto close KO/Pi?"), i18n("Close"), i18n("No"), 0, 0 ) ) { diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index 1d87db0..3e854cb 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h @@ -18,32 +18,33 @@ class KSyncProfile; #endif class QPEToolBar; namespace KCal { class CalendarLocal; } using namespace KCal; class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); ~MainWindow(); public slots: + virtual void showMaximized (); void configureAgenda( int ); void recieve( const QCString& msg, const QByteArray& data ); static QString defaultFileName(); static QString resourcePath(); protected slots: void setCaptionToDates(); int ringSync(); void multiSync( bool askforPrefs = false ); void about(); void licence(); void faq(); void usertrans(); void features(); void synchowto(); void whatsNew(); void keyBindings(); |