Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.cpp
Show All 37 Lines | |||||
#include <QFileDialog> | #include <QFileDialog> | ||||
#include <QFont> | #include <QFont> | ||||
#include <QFontDatabase> | #include <QFontDatabase> | ||||
#include <QFontMetrics> | #include <QFontMetrics> | ||||
#include <QGuiApplication> | #include <QGuiApplication> | ||||
#include <QKeyEvent> | #include <QKeyEvent> | ||||
#include <QLineEdit> | #include <QLineEdit> | ||||
#include <QList> | #include <QList> | ||||
#include <QMenu> | |||||
#include <QMouseEvent> | #include <QMouseEvent> | ||||
#include <QProcess> | #include <QProcess> | ||||
#include <QProgressDialog> | #include <QProgressDialog> | ||||
#include <QScreen> | #include <QScreen> | ||||
#include <QSettings> | #include <QSettings> | ||||
#include <QShortcut> | #include <QShortcut> | ||||
#include <QSize> | #include <QSize> | ||||
#include <QString> | #include <QString> | ||||
▲ Show 20 Lines • Show All 870 Lines • ▼ Show 20 Lines | LogPrintf("System: %s, %s\n", QSysInfo::prettyProductName().toStdString(), | ||||
QSysInfo::buildAbi().toStdString()); | QSysInfo::buildAbi().toStdString()); | ||||
for (const QScreen *s : QGuiApplication::screens()) { | for (const QScreen *s : QGuiApplication::screens()) { | ||||
LogPrintf("Screen: %s %dx%d, pixel ratio=%.1f\n", | LogPrintf("Screen: %s %dx%d, pixel ratio=%.1f\n", | ||||
s->name().toStdString(), s->size().width(), | s->name().toStdString(), s->size().width(), | ||||
s->size().height(), s->devicePixelRatio()); | s->size().height(), s->devicePixelRatio()); | ||||
} | } | ||||
} | } | ||||
void PopupMenu(QMenu *menu, const QPoint &point, QAction *at_action) { | |||||
// The qminimal plugin does not provide window system integration. | |||||
if (QApplication::platformName() == "minimal") { | |||||
return; | |||||
} | |||||
menu->popup(point, at_action); | |||||
} | |||||
} // namespace GUIUtil | } // namespace GUIUtil |