-rw-r--r-- | kmicromail/mainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 5f777a3..d130317 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -135,49 +135,50 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
135 | SLOT( mailHold(int,QListViewItem*,const QPoint&,int) ) ); | 135 | SLOT( mailHold(int,QListViewItem*,const QPoint&,int) ) ); |
136 | connect(folderView, SIGNAL(refreshMailview(const QValueList<RecMailP>&)), | 136 | connect(folderView, SIGNAL(refreshMailview(const QValueList<RecMailP>&)), |
137 | this,SLOT(refreshMailView(const QValueList<RecMailP>&))); | 137 | this,SLOT(refreshMailView(const QValueList<RecMailP>&))); |
138 | connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) ); | 138 | connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) ); |
139 | connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) ); | 139 | connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) ); |
140 | // connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); | 140 | // connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); |
141 | connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); | 141 | connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); |
142 | //mailView->setMultiSelection ( true ); | 142 | //mailView->setMultiSelection ( true ); |
143 | mailView->setSelectionMode( QListView::Extended ); | 143 | mailView->setSelectionMode( QListView::Extended ); |
144 | QValueList<int> list; | 144 | QValueList<int> list; |
145 | int fw = 100; | 145 | int fw = 100; |
146 | if ( QApplication::desktop()->width() > 320 ) | 146 | if ( QApplication::desktop()->width() > 320 ) |
147 | fw = 50; | 147 | fw = 50; |
148 | list.append( fw ); | 148 | list.append( fw ); |
149 | list.append( 100 ); | 149 | list.append( 100 ); |
150 | split->setSizes( list ); | 150 | split->setSizes( list ); |
151 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); | 151 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); |
152 | mailView->setShowSortIndicator ( true ); | 152 | mailView->setShowSortIndicator ( true ); |
153 | QLabel *spacer = new QLabel( toolBar ); | 153 | QLabel *spacer = new QLabel( toolBar ); |
154 | spacer->setBackgroundMode( QWidget::PaletteButton ); | 154 | spacer->setBackgroundMode( QWidget::PaletteButton ); |
155 | toolBar->setStretchableWidget( spacer ); | 155 | toolBar->setStretchableWidget( spacer ); |
156 | 156 | ||
157 | QAction* closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); | 157 | QAction* closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); |
158 | connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); | 158 | connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); |
159 | closeMail->addTo(toolBar); | 159 | if ( QApplication::desktop()->width() > 320 ) |
160 | closeMail->addTo(toolBar); | ||
160 | closeMail->addTo(mailMenu); | 161 | closeMail->addTo(mailMenu); |
161 | 162 | ||
162 | 163 | ||
163 | QPopupMenu* helpMenu = new QPopupMenu( menuBar ); | 164 | QPopupMenu* helpMenu = new QPopupMenu( menuBar ); |
164 | menuBar->insertItem( tr( "Help" ), helpMenu ); | 165 | menuBar->insertItem( tr( "Help" ), helpMenu ); |
165 | QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this); | 166 | QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this); |
166 | connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); | 167 | connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); |
167 | li->addTo(helpMenu); | 168 | li->addTo(helpMenu); |
168 | li = new QAction(tr("Licence"),QPixmap(), 0, 0, this); | 169 | li = new QAction(tr("Licence"),QPixmap(), 0, 0, this); |
169 | connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); | 170 | connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); |
170 | li->addTo(helpMenu); | 171 | li->addTo(helpMenu); |
171 | li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this); | 172 | li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this); |
172 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); | 173 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); |
173 | li->addTo(helpMenu); | 174 | li->addTo(helpMenu); |
174 | } | 175 | } |
175 | 176 | ||
176 | MainWindow::~MainWindow() | 177 | MainWindow::~MainWindow() |
177 | { | 178 | { |
178 | } | 179 | } |
179 | 180 | ||
180 | void MainWindow::showLicence() | 181 | void MainWindow::showLicence() |
181 | { | 182 | { |
182 | KApplication::showLicence(); | 183 | KApplication::showLicence(); |
183 | } | 184 | } |