From 73f9f36e6e6a64e2b17f28e06c32a272b30ac0a3 Mon Sep 17 00:00:00 2001 From: Bill Egert Date: Mon, 18 Feb 2008 01:06:50 +0000 Subject: [PATCH] No longer use Obsolete Member for QWidget: topLevelWidget() => window() svn path=/trunk/KDE/kdebase/workspace/; revision=776408 --- kcmkwin/kwinrules/ruleswidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kcmkwin/kwinrules/ruleswidget.cpp b/kcmkwin/kwinrules/ruleswidget.cpp index c52044aa4c..8ca752b9ed 100644 --- a/kcmkwin/kwinrules/ruleswidget.cpp +++ b/kcmkwin/kwinrules/ruleswidget.cpp @@ -661,7 +661,7 @@ bool RulesWidget::finalCheck() all_types = false; if( wmclass_match->currentIndex() == Rules::UnimportantMatch && all_types ) { - if( KMessageBox::warningContinueCancel( topLevelWidget(), + if( KMessageBox::warningContinueCancel( window(), i18n( "You have specified the window class as unimportant.\n" "This means the settings will possibly apply to windows from all applications. " "If you really want to create a generic setting, it is recommended you at least " @@ -680,7 +680,7 @@ void RulesWidget::prepareWindowSpecific( WId window ) void RulesWidget::shortcutEditClicked() { - EditShortcutDialog dlg( topLevelWidget()); + EditShortcutDialog dlg( window()); dlg.setShortcut( shortcut->text()); if( dlg.exec() == QDialog::Accepted ) shortcut->setText( dlg.shortcut()); @@ -741,7 +741,7 @@ EditShortcut::EditShortcut( QWidget* parent ) void EditShortcut::editShortcut() { - ShortcutDialog dlg( QKeySequence( shortcut->text()), topLevelWidget()); + ShortcutDialog dlg( QKeySequence( shortcut->text()), window()); if( dlg.exec() == QDialog::Accepted ) shortcut->setText( dlg.shortcut().toString()); }