summaryrefslogtreecommitdiff
path: root/src/urlbar/webshortcutwidget.cpp
diff options
context:
space:
mode:
authorRohan Garg <rohangarg@gmail.com>2011-01-12 04:01:02 +0530
committerRohan Garg <rohangarg@gmail.com>2011-01-12 04:01:02 +0530
commit3dbfc06247db3c62a73f1f3022b648197ae24a00 (patch)
tree737dc5226e9e710cd63de3559038eecd334035ef /src/urlbar/webshortcutwidget.cpp
parentstring improvements in the tab settings page (diff)
downloadrekonq-3dbfc06247db3c62a73f1f3022b648197ae24a00.tar.xz
Krazy Fixes!!
Add #rekonq_define.h to files that now use QL1C
Diffstat (limited to 'src/urlbar/webshortcutwidget.cpp')
-rw-r--r--src/urlbar/webshortcutwidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/urlbar/webshortcutwidget.cpp b/src/urlbar/webshortcutwidget.cpp
index 843d528b..c687108a 100644
--- a/src/urlbar/webshortcutwidget.cpp
+++ b/src/urlbar/webshortcutwidget.cpp
@@ -18,6 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
+#include "rekonq_defines.h"
#include "webshortcutwidget.h"
#include <QtCore/QTimer>
@@ -138,11 +139,11 @@ void WebShortcutWidget::cancelClicked()
void WebShortcutWidget::shortcutsChanged(const QString& newShorthands)
{
int savedCursorPosition = m_wsLineEdit->cursorPosition();
- QString normalizedShorthands = QString(newShorthands).replace(" ", ",");
+ QString normalizedShorthands = QString(newShorthands).replace(QL1C(' '), QL1C(','));
m_wsLineEdit->setText(normalizedShorthands);
m_wsLineEdit->setCursorPosition(savedCursorPosition);
- QSet<QString> shorthands = normalizedShorthands.split(",").toSet();
+ QSet<QString> shorthands = normalizedShorthands.split(QL1C(',')).toSet();
QString contenderName = "";
QString contenderWS = "";