widget = list.at(i);
if (widget->isWindow() && widget->parentWidget() == parent &&
this != widget) {
- UIUtil::setTopMost(widget, on);
+ UiUtil::setTopMost(widget, on);
}
}
#endif
- UIUtil::setTopMost(parent, on);
+ UiUtil::setTopMost(parent, on);
actionTopMost->setChecked(on);
parent->getUiState()->setOnTop(on);
mainwindow->setCaptureRequestHandler(captureRequestListener, captureRequestHandler);
/* position */
- QRect hostBounds = UIUtil::getHostScreenBounds();
+ QRect hostBounds = UiUtil::getHostScreenBounds();
qDebug() << "host geometry:" << hostBounds;
int defaultValueX = hostBounds.x() - 1;
#include "uiutil.h"
-UIUtil::UIUtil()
+UiUtil::UiUtil()
{
/* do nothing */
}
-QRect UIUtil::getHostScreenBounds()
+QRect UiUtil::getHostScreenBounds()
{
return QApplication::screens().at(
QApplication::desktop()->primaryScreen())->virtualGeometry();
}
-void UIUtil::setTopMost(QWidget *widget, bool on)
+void UiUtil::setTopMost(QWidget *widget, bool on)
{
if (widget == NULL) {
return;
#include <X11/Xatom.h>
#endif
-class UIUtil
+class UiUtil
{
public:
- UIUtil();
+ UiUtil();
static QRect getHostScreenBounds();
static void setTopMost(QWidget *widget, bool on);