summaryrefslogtreecommitdiffabout
path: root/korganizer/kodialogmanager.cpp
Unidiff
Diffstat (limited to 'korganizer/kodialogmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kodialogmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/korganizer/kodialogmanager.cpp b/korganizer/kodialogmanager.cpp
index 1af9dad..a8652ea 100644
--- a/korganizer/kodialogmanager.cpp
+++ b/korganizer/kodialogmanager.cpp
@@ -192,49 +192,50 @@ void KODialogManager::showSearchDialog()
192 // mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); 192 // mMainView, SLOT( processMainViewSelection( Incidence * ) ) );
193#ifndef DESKTOP_VERSION 193#ifndef DESKTOP_VERSION
194 mSearchDialog->setMaximumSize( QApplication::desktop()->size()); 194 mSearchDialog->setMaximumSize( QApplication::desktop()->size());
195 mSearchDialog->showMaximized(); 195 mSearchDialog->showMaximized();
196#else 196#else
197 KConfig *config = KOGlobals::config(); 197 KConfig *config = KOGlobals::config();
198 config->setGroup("WidgetLayout"); 198 config->setGroup("WidgetLayout");
199 QStringList list; 199 QStringList list;
200 list = config->readListEntry("SearchLayout"); 200 list = config->readListEntry("SearchLayout");
201 int x,y,w,h; 201 int x,y,w,h;
202 if ( ! list.isEmpty() ) { 202 if ( ! list.isEmpty() ) {
203 x = list[0].toInt(); 203 x = list[0].toInt();
204 y = list[1].toInt(); 204 y = list[1].toInt();
205 w = list[2].toInt(); 205 w = list[2].toInt();
206 h = list[3].toInt(); 206 h = list[3].toInt();
207 mSearchDialog->setGeometry(x,y,w,h); 207 mSearchDialog->setGeometry(x,y,w,h);
208 208
209 } 209 }
210 210
211#endif 211#endif
212 } 212 }
213 // make sure the widget is on top again 213 // make sure the widget is on top again
214#ifdef DESKTOP_VERSION 214#ifdef DESKTOP_VERSION
215 mSearchDialog->show(); 215 mSearchDialog->show();
216#else 216#else
217 mSearchDialog->setMaximumSize( QApplication::desktop()->size());
217 mSearchDialog->showMaximized(); 218 mSearchDialog->showMaximized();
218#endif 219#endif
219 mSearchDialog->raise(); 220 mSearchDialog->raise();
220} 221}
221 222
222SearchDialog * KODialogManager::getSearchDialog() 223SearchDialog * KODialogManager::getSearchDialog()
223{ 224{
224 return mSearchDialog; 225 return mSearchDialog;
225} 226}
226void KODialogManager::showArchiveDialog() 227void KODialogManager::showArchiveDialog()
227{ 228{
228#ifndef KORG_NOARCHIVE 229#ifndef KORG_NOARCHIVE
229 if (!mArchiveDialog) { 230 if (!mArchiveDialog) {
230 mArchiveDialog = new ArchiveDialog(mMainView->calendar(),mMainView); 231 mArchiveDialog = new ArchiveDialog(mMainView->calendar(),mMainView);
231 connect(mArchiveDialog,SIGNAL(eventsDeleted()), 232 connect(mArchiveDialog,SIGNAL(eventsDeleted()),
232 mMainView,SLOT(updateView())); 233 mMainView,SLOT(updateView()));
233 } 234 }
234 mArchiveDialog->show(); 235 mArchiveDialog->show();
235 mArchiveDialog->raise(); 236 mArchiveDialog->raise();
236 237
237 // Workaround. 238 // Workaround.
238 QApplication::restoreOverrideCursor(); 239 QApplication::restoreOverrideCursor();
239#endif 240#endif
240} 241}