Skip to content

Commit e3d5b3c

Browse files
committed
Formatting
1 parent 20732fb commit e3d5b3c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/qsearchfield.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ void QSearchField::resizeEvent(QResizeEvent *resizeEvent) {
167167
bool QSearchField::eventFilter(QObject *o, QEvent *e) {
168168

169169
if (pimpl && pimpl->lineedit_ && o == pimpl->lineedit_) {
170-
// Forward some lineEdit events to QSearchField (only those we need for
171-
// now, but some might be added later if needed)
170+
// Forward some lineEdit events to QSearchField (only those we need for now, but some might be added later if needed)
172171
switch (e->type()) {
173172
case QEvent::FocusIn:
174173
case QEvent::FocusOut:

src/settingsdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ void SettingsDialog::ComboBoxLoadFromSettings(const QSettings &s, QComboBox *com
351351
void SettingsDialog::SelectLocalPath() {
352352

353353
QString current_path;
354-
if ( !ui_->local_path->text().isEmpty() && QFileInfo(ui_->local_path->text()).exists() ) {
354+
if (!ui_->local_path->text().isEmpty() && QFile::exists(ui_->local_path->text())) {
355355
current_path = ui_->local_path->text();
356356
}
357357
else {

src/utilities.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
1818
*/
1919

20+
#include <QtGlobal>
21+
2022
#include <cstdlib>
2123
#include <ctime>
2224

23-
#include <QtGlobal>
2425
#include <QList>
2526
#include <QByteArray>
2627
#include <QString>

0 commit comments

Comments
 (0)