Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.cpp
Show First 20 Lines • Show All 406 Lines • ▼ Show 20 Lines | bool openBitcoinConf() { | ||||
configFile.close(); | configFile.close(); | ||||
/* Open bitcoin.conf with the associated application */ | /* Open bitcoin.conf with the associated application */ | ||||
return QDesktopServices::openUrl( | return QDesktopServices::openUrl( | ||||
QUrl::fromLocalFile(boostPathToQString(pathConfig))); | QUrl::fromLocalFile(boostPathToQString(pathConfig))); | ||||
} | } | ||||
QStringList splitSkipEmptyParts(const QString &s, const QString &separator) { | |||||
return s.split(separator, | |||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)) | |||||
Qt::SkipEmptyParts | |||||
#else | |||||
QString::SkipEmptyParts | |||||
#endif | |||||
); | |||||
} | |||||
ToolTipToRichTextFilter::ToolTipToRichTextFilter(int _size_threshold, | ToolTipToRichTextFilter::ToolTipToRichTextFilter(int _size_threshold, | ||||
QObject *parent) | QObject *parent) | ||||
: QObject(parent), size_threshold(_size_threshold) {} | : QObject(parent), size_threshold(_size_threshold) {} | ||||
bool ToolTipToRichTextFilter::eventFilter(QObject *obj, QEvent *evt) { | bool ToolTipToRichTextFilter::eventFilter(QObject *obj, QEvent *evt) { | ||||
if (evt->type() == QEvent::ToolTipChange) { | if (evt->type() == QEvent::ToolTipChange) { | ||||
QWidget *widget = static_cast<QWidget *>(obj); | QWidget *widget = static_cast<QWidget *>(obj); | ||||
QString tooltip = widget->toolTip(); | QString tooltip = widget->toolTip(); | ||||
▲ Show 20 Lines • Show All 544 Lines • Show Last 20 Lines |