CCIMXDesktop
Loading...
Searching...
No Matches
UiTools.h
1
#ifndef UITOOLS_H
2
#define UITOOLS_H
3
#include <QDebug>
4
#include <QString>
5
class
QGridLayout;
6
class
QWidget;
7
12
namespace
UiTools
{
13
21
void
addWidgetToGridTail
(QGridLayout* layout, QWidget* newWidget,
int
columnCount);
22
28
template
<
typename
WindowType>
29
void
openIfUnvisible
(WindowType* window,
const
QString& windowName) {
30
if
(window->isVisible()) {
31
qDebug() << windowName <<
"is already visible"
;
32
return
;
33
}
34
window->show();
35
}
36
};
37
38
#endif
// UITOOLS_H
UiTools
Tools for Ui Sessions.
Definition
UiTools.h:4
UiTools::openIfUnvisible
void openIfUnvisible(WindowType *window, const QString &windowName)
openIfUnvisible
Definition
UiTools.h:29
UiTools::addWidgetToGridTail
void addWidgetToGridTail(QGridLayout *layout, QWidget *newWidget, int columnCount)
append to a gridlayout
Definition
UiTools.cpp:18
ui
UiTools.h
Generated by
1.9.8