diff options
| author | Karol Kosek <krkk@krkk.ct8.pl> | 2021-01-02 11:39:05 +0100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-01-02 11:58:44 +0100 |
| commit | c33c948712b07b322a3cb4400c973b05bafe53a5 (patch) | |
| tree | e9f63649e239766a694ac06b2660a07df7e39db8 /src | |
| parent | 297aaf0aad9c0858730dc194b6567a9d60f75cbf (diff) | |
| download | kristall-c33c948712b07b322a3cb4400c973b05bafe53a5.tar.gz | |
Compile with Qt 5.9
Diffstat (limited to 'src')
| -rw-r--r-- | src/browsertab.cpp | 2 | ||||
| -rw-r--r-- | src/widgets/searchbar.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/browsertab.cpp b/src/browsertab.cpp index dcc3219..60c3f40 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -1177,7 +1177,7 @@ void BrowserTab::updateUrlBarStyle() // placeholder text colour for this). // The rest of the text is in default theme foreground colour. QTextCharFormat f; - f.setForeground(mainWindow->palette().color(QPalette::PlaceholderText)); + f.setForeground(mainWindow->palette().color(QPalette::Mid)); // Create format range for left-side of URL QTextLayout::FormatRange fr_left; diff --git a/src/widgets/searchbar.cpp b/src/widgets/searchbar.cpp index 1347b33..d157912 100644 --- a/src/widgets/searchbar.cpp +++ b/src/widgets/searchbar.cpp @@ -55,7 +55,7 @@ void SearchBar::mouseReleaseEvent(QMouseEvent *event) // Select all text if the bar was just focused and // user did not select anything. - if (this->selectall_flag && QLineEdit::selectionLength() < 1) + if (this->selectall_flag && selectionStart() == -1) { QLineEdit::selectAll(); } |
