summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-09-10 21:37:12 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-09-11 17:20:52 +0300
commit14ed433027623e1ae31f4f874605580c8191b27d (patch)
tree0778451ab7378fde0988a68d3b23ff3fc93b4724 /src
parentFix some clang-tidy warnings (diff)
downloadrekonq-14ed433027623e1ae31f4f874605580c8191b27d.tar.xz
Update cppcheck.sh
Diffstat (limited to 'src')
-rw-r--r--src/tabbar/tabbar.cpp5
-rw-r--r--src/urlbar/urlbar.cpp22
-rw-r--r--src/urlbar/urlbar.hpp2
3 files changed, 1 insertions, 28 deletions
diff --git a/src/tabbar/tabbar.cpp b/src/tabbar/tabbar.cpp
index fb5c0444..849dfbc1 100644
--- a/src/tabbar/tabbar.cpp
+++ b/src/tabbar/tabbar.cpp
@@ -10,11 +10,6 @@
#include "tabbar.h"
-static inline QByteArray highlightPropertyName(int index)
-{
- return QByteArray("hAnim").append(QByteArray::number(index));
-}
-
// ------------------------------------------------------------------------------------
TabBar::TabBar(QWidget *parent) : QTabBar(parent)
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();