diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-09-10 21:37:12 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-09-11 17:20:52 +0300 |
commit | 14ed433027623e1ae31f4f874605580c8191b27d (patch) | |
tree | 0778451ab7378fde0988a68d3b23ff3fc93b4724 /src/urlbar | |
parent | Fix some clang-tidy warnings (diff) | |
download | rekonq-14ed433027623e1ae31f4f874605580c8191b27d.tar.xz |
Update cppcheck.sh
Diffstat (limited to 'src/urlbar')
-rw-r--r-- | src/urlbar/urlbar.cpp | 22 | ||||
-rw-r--r-- | src/urlbar/urlbar.hpp | 2 |
2 files changed, 1 insertions, 23 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index fcd9f7d3..18067f09 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -32,19 +32,6 @@ IconButton::IconButton(QWidget *parent) : QToolButton(parent) // ----------------------------------------------------------------------------------------------------------- -QString guessUrlWithCustomFirstLevel(const QString &str1, const QString &str2) -{ - QUrl url(QL1S("http://www.") + str1); - QString host = url.host().toLower(); - if (!host.endsWith(str2, Qt::CaseInsensitive)) { - host += str2; - url.setHost(host); - } - return url.toString(); -} - -// ----------------------------------------------------------------------------------------------------------- - UrlBar::UrlBar(QWidget *parent) : QLineEdit(parent), _icon(new IconButton(this)), backgroundColor{qApp->palette().color(QPalette::Base)}, highlightColor{qApp->palette().color(QPalette::Highlight)} @@ -198,7 +185,7 @@ void UrlBar::resizeEvent(QResizeEvent *event) _icon->move(c_iconMargin, iconHeight); for (int i = 0; i < iconsCount; ++i) { - IconButton *bt = _rightIconsList.at(i); + // IconButton *bt = _rightIconsList.at(i); // updateRightIconPosition(bt, i + 1); } @@ -749,10 +736,3 @@ void UrlBar::removeFromFavorites() } } */ - -void UrlBar::clearUrlbar() -{ - clear(); - // TODO: clearRightIcons(); - setFocus(); -} diff --git a/src/urlbar/urlbar.hpp b/src/urlbar/urlbar.hpp index 98e8368d..8be97838 100644 --- a/src/urlbar/urlbar.hpp +++ b/src/urlbar/urlbar.hpp @@ -54,8 +54,6 @@ public slots: */ // void manageBookmarks(); - void clearUrlbar(); - void loadRequestedUrl(const QUrl &url, rekonq::OpenType = rekonq::CurrentTab); void loadStarted(); |