projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use raw string literals instead of escaped strings
[quassel.git]
/
src
/
qtui
/
chatviewsearchbar.cpp
diff --git
a/src/qtui/chatviewsearchbar.cpp
b/src/qtui/chatviewsearchbar.cpp
index
56b5c8f
..
a8d4680
100644
(file)
--- a/
src/qtui/chatviewsearchbar.cpp
+++ b/
src/qtui/chatviewsearchbar.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
4
by the Quassel Project *
+ * Copyright (C) 2005-201
8
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-20,19
+20,18
@@
#include "chatviewsearchbar.h"
#include "chatviewsearchbar.h"
-#include <QIcon>
-
#include "action.h"
#include "actioncollection.h"
#include "action.h"
#include "actioncollection.h"
+#include "icon.h"
#include "qtui.h"
ChatViewSearchBar::ChatViewSearchBar(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
#include "qtui.h"
ChatViewSearchBar::ChatViewSearchBar(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
- ui.hideButton->setIcon(
QIcon::fromTheme
("dialog-close"));
- ui.searchUpButton->setIcon(
QIcon::fromTheme
("go-up"));
- ui.searchDownButton->setIcon(
QIcon::fromTheme
("go-down"));
+ ui.hideButton->setIcon(
icon::get
("dialog-close"));
+ ui.searchUpButton->setIcon(
icon::get
("go-up"));
+ ui.searchDownButton->setIcon(
icon::get
("go-down"));
_searchDelayTimer.setSingleShot(true);
layout()->setContentsMargins(0, 0, 0, 0);
_searchDelayTimer.setSingleShot(true);
layout()->setContentsMargins(0, 0, 0, 0);
@@
-44,7
+43,7
@@
ChatViewSearchBar::ChatViewSearchBar(QWidget *parent)
QAction *toggleSearchBar = coll->action("ToggleSearchBar");
connect(toggleSearchBar, SIGNAL(toggled(bool)), SLOT(setVisible(bool)));
QAction *toggleSearchBar = coll->action("ToggleSearchBar");
connect(toggleSearchBar, SIGNAL(toggled(bool)), SLOT(setVisible(bool)));
-
Action
*hideSearchBar = coll->add<Action>("HideSearchBar", toggleSearchBar, SLOT(setChecked(bool)));
+
auto
*hideSearchBar = coll->add<Action>("HideSearchBar", toggleSearchBar, SLOT(setChecked(bool)));
hideSearchBar->setShortcutConfigurable(false);
hideSearchBar->setShortcut(Qt::Key_Escape);
hideSearchBar->setShortcutConfigurable(false);
hideSearchBar->setShortcut(Qt::Key_Escape);