Skip to content

Commit

Permalink
Merge pull request #2198 from barton2526/QT
Browse files Browse the repository at this point in the history
qt: Remove obsolete topLevelWidget(), Remove obsolete QRegExpValidator
  • Loading branch information
jamescowens committed Jun 24, 2021
2 parents 6f2e54b + 2fd8d4b commit 7bf8a7c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/qt/bitcoinaddressvalidator.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef BITCOINADDRESSVALIDATOR_H
#define BITCOINADDRESSVALIDATOR_H

#include <QRegExpValidator>
#include <QValidator>

/** Base48 entry widget validator.
Corrects near-miss characters and refuses characters that are no part of base48.
Expand Down
1 change: 0 additions & 1 deletion src/qt/bitcoinamountfield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include <QLabel>
#include <QLineEdit>
#include <QRegExpValidator>
#include <QHBoxLayout>
#include <QKeyEvent>
#include <QDoubleSpinBox>
Expand Down
2 changes: 1 addition & 1 deletion src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ bool checkPoint(const QPoint &p, const QWidget *w)
{
QWidget *atW = qApp->widgetAt(w->mapToGlobal(p));
if (!atW) return false;
return atW->topLevelWidget() == w;
return atW->window() == w;
}

bool isObscured(QWidget *w)
Expand Down
2 changes: 0 additions & 2 deletions src/qt/optionsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#include <QIntValidator>
#include <QLocale>
#include <QMessageBox>
#include <QRegExp>
#include <QRegExpValidator>

OptionsDialog::OptionsDialog(QWidget* parent)
: QDialog(parent)
Expand Down

0 comments on commit 7bf8a7c

Please sign in to comment.