From 9f566cd9bd8364336815f9e3fc537a6974ec2f90 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 2 Apr 2009 02:16:49 +0200 Subject: QKeySequence --> KShortCut --- src/mainwindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index bae54d94..bd630580 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -207,7 +207,7 @@ void MainWindow::setupActions() KStandardAction::paste(m_view, SLOT(slotWebPaste()), actionCollection()); a = new KAction(KIcon("process-stop"), i18n("&Stop"), this); - a->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Period)); + a->setShortcut(KShortcut(Qt::CTRL | Qt::Key_Period)); actionCollection()->addAction(QLatin1String("stop"), a); connect(a, SIGNAL(triggered(bool)), m_view, SLOT(slotWebStop())); @@ -227,17 +227,17 @@ void MainWindow::setupActions() connect(a, SIGNAL(triggered(bool)) , this, SLOT(slotPrivateBrowsing())); a = new KAction(KIcon("zoom-in"), i18n("&Enlarge Font"), this); - a->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Plus)); + a->setShortcut(KShortcut(Qt::CTRL | Qt::Key_Plus)); actionCollection()->addAction(QLatin1String("bigger_font"), a); connect(a, SIGNAL(triggered(bool)), this, SLOT(slotViewTextBigger())); a = new KAction(KIcon("zoom-original"), i18n("&Normal Font"), this); - a->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_0)); + a->setShortcut(KShortcut(Qt::CTRL | Qt::Key_0)); actionCollection()->addAction(QLatin1String("normal_font"), a); connect(a, SIGNAL(triggered(bool)), this, SLOT(slotViewTextNormal())); a = new KAction(KIcon("zoom-out"), i18n("&Shrink Font"), this); - a->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Minus)); + a->setShortcut(KShortcut(Qt::CTRL | Qt::Key_Minus)); actionCollection()->addAction(QLatin1String("smaller_font"), a); connect(a, SIGNAL(triggered(bool)), this, SLOT(slotViewTextSmaller())); -- cgit v1.2.1