From 284259ccc87dd8627160adbb146ab2e1ae49f12f Mon Sep 17 00:00:00 2001 From: jghali Date: Sat, 11 Feb 2012 18:24:23 +0000 Subject: more code cleanups git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17294 11d20701-8431-0410-a711-e3c959e3b870 --- scribus/shortcutwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scribus/shortcutwidget.cpp') diff --git a/scribus/shortcutwidget.cpp b/scribus/shortcutwidget.cpp index c9137cc..aa335f3 100644 --- a/scribus/shortcutwidget.cpp +++ b/scribus/shortcutwidget.cpp @@ -65,7 +65,7 @@ void ShortcutWidget::keyPressEvent(QKeyEvent *k) if (!keyDisplay->text().isEmpty()) { tl = keyDisplay->text().split("+", QString::SkipEmptyParts); - Part4 = tl[tl.count()-1]; + Part4 = tl.last(); if (Part4 == tr("Alt") || Part4 == tr("Ctrl") || Part4 == tr("Shift") || Part4 == tr("Meta")) Part4 = ""; } @@ -112,7 +112,7 @@ void ShortcutWidget::keyReleaseEvent(QKeyEvent *k) { QStringList tl; tl = keyDisplay->text().split("+", QString::SkipEmptyParts); - Part4 = tl[tl.count()-1]; + Part4 = tl.last(); if (Part4 == tr("Alt") || Part4 == tr("Ctrl") || Part4 == tr("Shift") || Part4 == tr("Meta")) Part4 = ""; } -- cgit