summaryrefslogtreecommitdiff
path: root/src/urlbar/urlbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/urlbar/urlbar.cpp')
-rw-r--r--src/urlbar/urlbar.cpp22
1 files changed, 1 insertions, 21 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();
-}