mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 06:25:33 +08:00
refs #507, adjustments for launcher
* renamed GUI enum to reflect where audio runs * removed assumpted position, this is no longer possible as launcher is independet application
This commit is contained in:
committed by
Mathew Sutcliffe
parent
30e6831bf8
commit
746985fa3c
@@ -217,23 +217,6 @@ namespace BlackGui
|
||||
return (mw) ? mw->getWidget()->pos() : QPoint();
|
||||
}
|
||||
|
||||
QPoint CGuiUtility::introWindowPosition()
|
||||
{
|
||||
QWidgetList tlw = topLevelApplicationWidgetsWithName();
|
||||
foreach(QWidget * w, tlw)
|
||||
{
|
||||
QString n = w->objectName().toLower();
|
||||
if (n.contains("intro")) { return w->pos(); }
|
||||
}
|
||||
return QPoint(0, 0);
|
||||
}
|
||||
|
||||
QPoint CGuiUtility::assumedMainWindowPosition()
|
||||
{
|
||||
QPoint p = mainWindowPosition();
|
||||
return (p.isNull()) ? introWindowPosition() : p;
|
||||
}
|
||||
|
||||
QString CGuiUtility::replaceTabCountValue(const QString &oldName, int count)
|
||||
{
|
||||
const QString v = QString(" (").append(QString::number(count)).append(")");
|
||||
|
||||
@@ -41,12 +41,6 @@ namespace BlackGui
|
||||
//! Position of main window
|
||||
static QPoint mainWindowPosition();
|
||||
|
||||
//! Position of intro window
|
||||
static QPoint introWindowPosition();
|
||||
|
||||
//! During initialization, when main window position might not be set set
|
||||
static QPoint assumedMainWindowPosition();
|
||||
|
||||
//! Replace count in name such as "stations (4)"
|
||||
static QString replaceTabCountValue(const QString &oldName, int count);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user