Showing the changes to interface/src/ui/AddressBarDialog.cpp (1 of 29 files). Show all
Unified · Split
| @@ -9,6 +9,8 @@ · 8 unmodified lines | ||
| 9 | 9 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html |
| 10 | 10 | // |
| 11 | 11 | |
| 12 | +#include <PathUtils.h> | |
| 13 | + | |
| 12 | 14 | #include "AddressBarDialog.h" |
| 13 | 15 | #include "AddressManager.h" |
| 14 | 16 | #include "Application.h" |
| @@ -82,7 +84,7 @@ void AddressBarDialog::setupUI() { · 67 unmodified lines | ||
| 82 | 84 | _goButton->setSizePolicy(sizePolicy); |
| 83 | 85 | _goButton->setMinimumSize(QSize(GO_BUTTON_SIZE, GO_BUTTON_SIZE)); |
| 84 | 86 | _goButton->setMaximumSize(QSize(GO_BUTTON_SIZE, GO_BUTTON_SIZE)); |
| 85 | − _goButton->setIcon(QIcon(Application::resourcesPath() + ADDRESSBAR_GO_BUTTON_ICON)); | |
| 87 | + _goButton->setIcon(QIcon(PathUtils::resourcesPath() + ADDRESSBAR_GO_BUTTON_ICON)); | |
| 86 | 88 | _goButton->setIconSize(QSize(GO_BUTTON_SIZE, GO_BUTTON_SIZE)); |
| 87 | 89 | _goButton->setDefault(true); |
| 88 | 90 | _goButton->setFlat(true); |
| @@ -99,7 +101,7 @@ void AddressBarDialog::setupUI() { · 10 unmodified lines | ||
| 99 | 101 | _closeButton->setSizePolicy(sizePolicy); |
| 100 | 102 | _closeButton->setMinimumSize(QSize(CLOSE_BUTTON_SIZE, CLOSE_BUTTON_SIZE)); |
| 101 | 103 | _closeButton->setMaximumSize(QSize(CLOSE_BUTTON_SIZE, CLOSE_BUTTON_SIZE)); |
| 102 | − QIcon icon(Application::resourcesPath() + CLOSE_BUTTON_ICON); | |
| 104 | + QIcon icon(PathUtils::resourcesPath() + CLOSE_BUTTON_ICON); | |
| 103 | 105 | _closeButton->setIcon(icon); |
| 104 | 106 | _closeButton->setIconSize(QSize(CLOSE_BUTTON_SIZE, CLOSE_BUTTON_SIZE)); |
| 105 | 107 | _closeButton->setFlat(true); |
| @@ -112,7 +114,7 @@ void AddressBarDialog::setupUI() { · 6 unmodified lines | ||
| 112 | 114 | } |
| 113 | 115 | |
| 114 | 116 | void AddressBarDialog::showEvent(QShowEvent* event) { |
| 115 | − _goButton->setIcon(QIcon(Application::resourcesPath() + ADDRESSBAR_GO_BUTTON_ICON)); | |
| 117 | + _goButton->setIcon(QIcon(PathUtils::resourcesPath() + ADDRESSBAR_GO_BUTTON_ICON)); | |
| 116 | 118 | _addressLineEdit->setText(QString()); |
| 117 | 119 | _addressLineEdit->setFocus(); |
| 118 | 120 | FramelessDialog::showEvent(event); |
| @@ -120,7 +122,7 @@ void AddressBarDialog::showEvent(QShowEvent* event) { · 1 unmodified line | ||
| 120 | 122 | |
| 121 | 123 | void AddressBarDialog::accept() { |
| 122 | 124 | if (!_addressLineEdit->text().isEmpty()) { |
| 123 | − _goButton->setIcon(QIcon(Application::resourcesPath() + ADDRESSBAR_GO_BUTTON_ACTIVE_ICON)); | |
| 125 | + _goButton->setIcon(QIcon(PathUtils::resourcesPath() + ADDRESSBAR_GO_BUTTON_ACTIVE_ICON)); | |
| 124 | 126 | AddressManager& addressManager = AddressManager::getInstance(); |
| 125 | 127 | connect(&addressManager, &AddressManager::lookupResultsFinished, this, &QDialog::hide); |
| 126 | 128 | addressManager.handleLookupString(_addressLineEdit->text()); |