qt: Add GUIUtil::bringToFront
Github-Pull: #14123
Rebased-From: 5796671e1d
This commit is contained in:
parent
cce339ea42
commit
bcb88335ab
1 changed files with 11 additions and 0 deletions
|
@ -63,6 +63,14 @@
|
||||||
void ForceActivation();
|
void ForceActivation();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(Q_OS_MAC)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
|
||||||
|
#include <objc/objc-runtime.h>
|
||||||
|
#include <CoreServices/CoreServices.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace GUIUtil {
|
namespace GUIUtil {
|
||||||
|
|
||||||
QString dateTimeStr(const QDateTime &date)
|
QString dateTimeStr(const QDateTime &date)
|
||||||
|
@ -375,6 +383,9 @@ void bringToFront(QWidget* w)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void openDebugLogfile()
|
void openDebugLogfile()
|
||||||
{
|
{
|
||||||
fs::path pathDebug = GetDataDir() / "debug.log";
|
fs::path pathDebug = GetDataDir() / "debug.log";
|
||||||
|
|
Loading…
Add table
Reference in a new issue