Debian Codegraph @

src/librssguard/gui/reusable/locationlineedit.cpp

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/reusable/locationlineedit.cpp`/
2
3 #include "gui/reusable/locationlineedit.h"cxx . . $ `<file>/src/librssguard/gui/reusable/locationlineedit.h`/
4
5 #include "network-web/googlesuggest.h"cxx . . $ `<file>/src/librssguard/network-web/googlesuggest.h`/
6
7 #include <QMouseEvent>
8
9 LocationLineEditcxx . . $ LocationLineEdit#::LocationLineEditcxx . . $ LocationLineEdit#LocationLineEdit(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent)
10 : BaseLineEditcxx . . $ BaseLineEdit#(parent), m_mouseSelectsAllTextcxx . . $ LocationLineEdit#m_mouseSelectsAllText.(true), m_googleSuggestcxx . . $ LocationLineEdit#m_googleSuggest.(new GoogleSuggestcxx . . $ GoogleSuggest#GoogleSuggest(590694cdbd0af2aa).(this, this)) {
11 setPlaceholderTextcxx . . $ QLineEdit#setPlaceholderText(3520e46b33348bf6).(trcxx . . $ LocationLineEdit#tr(75d9f1c324b4579d).("Website address goes here"));
12 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(this, &LocationLineEditcxx . . $ LocationLineEdit#::submittedcxx . . $ BaseLineEdit#submitted(3520e46b33348bf6)., m_googleSuggestcxx . . $ LocationLineEdit#m_googleSuggest., &GoogleSuggestcxx . . $ GoogleSuggest#::preventSuggestcxx . . $ GoogleSuggest#preventSuggest(49f6e7a06ebc5aa8).);
13 }
14
15 LocationLineEditcxx . . $ LocationLineEdit#::~cxx . . $ LocationLineEdit#`~LocationLineEdit`(ced63f7c635d850d).LocationLineEditcxx . . $ LocationLineEdit#() {}
16
17 void LocationLineEditcxx . . $ LocationLineEdit#::focusOutEventcxx . . $ LocationLineEdit#focusOutEvent(897a5ce4b6676619).(QFocusEventcxx . . $ QFocusEvent#* event) {
18 BaseLineEditcxx . . $ BaseLineEdit#::focusOutEventcxx . . $ QLineEdit#focusOutEvent(897a5ce4b6676619).(event);
19
20 // User now left text box, when he enters it again and clicks,
21 // then all text should be selected.
22 m_mouseSelectsAllTextcxx . . $ LocationLineEdit#m_mouseSelectsAllText. = true;
23 }
24
25 void LocationLineEditcxx . . $ LocationLineEdit#::mousePressEventcxx . . $ LocationLineEdit#mousePressEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* event) {
26 if (m_mouseSelectsAllTextcxx . . $ LocationLineEdit#m_mouseSelectsAllText.) {
27 event->ignorecxx . . $ QEvent#ignore(49f6e7a06ebc5aa8).();
28 selectAllcxx . . $ QLineEdit#selectAll(49f6e7a06ebc5aa8).();
29
30 // User clicked and all text was selected.
31 m_mouseSelectsAllTextcxx . . $ LocationLineEdit#m_mouseSelectsAllText. = false;
32 }
33 else {
34 BaseLineEditcxx . . $ BaseLineEdit#::mousePressEventcxx . . $ QLineEdit#mousePressEvent(702858a82d06265c).(event);
35 }
36 }