Skip to content
Browse files

convert annoying QMessageBox to RazorNotification

  • Loading branch information...
1 parent 41eb331 commit fdb5bce1d3da225fdea07d7f3e3ebdd1436a839f @pvanek pvanek committed Sep 3, 2012
View
4 razorqt-appswitcher/src/appswitcher.cpp
@@ -41,6 +41,7 @@
#include <qtxdg/xdgicon.h>
#include <razorqt/razorsettings.h>
#include <razorqxt/qxtglobalshortcut.h>
+#include <razorqt/razornotification.h>
#define DEFAULT_SHORTCUT "Alt+Tab"
@@ -83,8 +84,7 @@ void RazorAppSwitcher::AppSwitcher::applySettings()
if (! m_key->setShortcut(shortcut))
{
- QMessageBox::information(this, tr("Global keyboard shortcut"),
- tr("Global shorcut: '%1' cannot be registered").arg(shortcut.toString()));
+ RazorNotification::notify(tr("Global shorcut: '%1' cannot be registered").arg(shortcut.toString()));
exit(1);
}
View
4 razorqt-panel/plugin-screensaver/panelscreensaver.cpp
@@ -28,6 +28,7 @@
#include <QtGui/QToolButton>
#include <QtGui/QMessageBox>
#include <razorqt/screensaver.h>
+#include <razorqt/razornotification.h>
#include <razorqxt/qxtglobalshortcut.h>
#include "panelscreensaver.h"
@@ -56,8 +57,7 @@ PanelScreenSaver::PanelScreenSaver(const RazorPanelPluginStartInfo* startInfo, Q
QKeySequence ks(Qt::CTRL + Qt::ALT + Qt::Key_L);
if (! m_key->setShortcut(ks))
{
- QMessageBox::information(this, tr("Global keyboard shortcut"),
- tr("Panel Screensaver Global shorcut: '%1' cannot be registered").arg(ks.toString()));
+ RazorNotification::notify(tr("Panel Screensaver Global shorcut: '%1' cannot be registered").arg(ks.toString()));
}
connect(m_key, SIGNAL(activated()), m_saver, SLOT(lockScreen()));

0 comments on commit fdb5bce

Please sign in to comment.
Something went wrong with that request. Please try again.