-rw-r--r-- | kmicromail/mainwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 7655385..4115276 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -158,48 +158,51 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
158 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); | 158 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); |
159 | mailView->setShowSortIndicator ( true ); | 159 | mailView->setShowSortIndicator ( true ); |
160 | QLabel *spacer = new QLabel( toolBar ); | 160 | QLabel *spacer = new QLabel( toolBar ); |
161 | spacer->setBackgroundMode( QWidget::PaletteButton ); | 161 | spacer->setBackgroundMode( QWidget::PaletteButton ); |
162 | toolBar->setStretchableWidget( spacer ); | 162 | toolBar->setStretchableWidget( spacer ); |
163 | 163 | ||
164 | QAction* closeMail = new QAction(i18n("Close"),SmallIcon("exit"), 0, 0, this); | 164 | QAction* closeMail = new QAction(i18n("Close"),SmallIcon("exit"), 0, 0, this); |
165 | connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); | 165 | connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); |
166 | if ( QApplication::desktop()->width() > 320 ) | 166 | if ( QApplication::desktop()->width() > 320 ) |
167 | closeMail->addTo(toolBar); | 167 | closeMail->addTo(toolBar); |
168 | closeMail->addTo(mailMenu); | 168 | closeMail->addTo(mailMenu); |
169 | 169 | ||
170 | 170 | ||
171 | QPopupMenu* helpMenu = new QPopupMenu( menuBar ); | 171 | QPopupMenu* helpMenu = new QPopupMenu( menuBar ); |
172 | menuBar->insertItem( i18n( "Help" ), helpMenu ); | 172 | menuBar->insertItem( i18n( "Help" ), helpMenu ); |
173 | QAction* li = new QAction(i18n("About"), QPixmap(), 0, 0, this); | 173 | QAction* li = new QAction(i18n("About"), QPixmap(), 0, 0, this); |
174 | connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); | 174 | connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); |
175 | li->addTo(helpMenu); | 175 | li->addTo(helpMenu); |
176 | li = new QAction(i18n("Licence"),QPixmap(), 0, 0, this); | 176 | li = new QAction(i18n("Licence"),QPixmap(), 0, 0, this); |
177 | connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); | 177 | connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); |
178 | li->addTo(helpMenu); | 178 | li->addTo(helpMenu); |
179 | li = new QAction(i18n("LibEtPan Licence"), QPixmap(), 0, 0, this); | 179 | li = new QAction(i18n("LibEtPan Licence"), QPixmap(), 0, 0, this); |
180 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); | 180 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); |
181 | li->addTo(helpMenu); | 181 | li->addTo(helpMenu); |
182 | #ifdef DESKTOP_VERSION | ||
183 | resize ( 640, 480 ); | ||
184 | #endif | ||
182 | } | 185 | } |
183 | 186 | ||
184 | MainWindow::~MainWindow() | 187 | MainWindow::~MainWindow() |
185 | { | 188 | { |
186 | } | 189 | } |
187 | 190 | ||
188 | void MainWindow::showLicence() | 191 | void MainWindow::showLicence() |
189 | { | 192 | { |
190 | KApplication::showLicence(); | 193 | KApplication::showLicence(); |
191 | } | 194 | } |
192 | void MainWindow::showAbout() | 195 | void MainWindow::showAbout() |
193 | { | 196 | { |
194 | QString version; | 197 | QString version; |
195 | #include <../version> | 198 | #include <../version> |
196 | 199 | ||
197 | QString cap = "About KOpieMail/Pi"; | 200 | QString cap = "About KOpieMail/Pi"; |
198 | QString text =i18n("KOpieMail/Platform-independent\n") + | 201 | QString text =i18n("KOpieMail/Platform-independent\n") + |
199 | "(OM/Pi) " + version + " - " | 202 | "(OM/Pi) " + version + " - " |
200 | 203 | ||
201 | #ifdef DESKTOP_VERSION | 204 | #ifdef DESKTOP_VERSION |
202 | "Desktop Edition\n" | 205 | "Desktop Edition\n" |
203 | #else | 206 | #else |
204 | "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" | 207 | "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" |
205 | #endif | 208 | #endif |