CCIMXDesktop
 
Loading...
Searching...
No Matches
UiTools.h
1#ifndef UITOOLS_H
2#define UITOOLS_H
3#include <QDebug>
4#include <QString>
5class QGridLayout;
6class QWidget;
7
12namespace UiTools {
13
21void addWidgetToGridTail(QGridLayout* layout, QWidget* newWidget, int columnCount);
22
28template <typename WindowType>
29void 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
Tools for Ui Sessions.
Definition UiTools.h:4
void openIfUnvisible(WindowType *window, const QString &windowName)
openIfUnvisible
Definition UiTools.h:29
void addWidgetToGridTail(QGridLayout *layout, QWidget *newWidget, int columnCount)
append to a gridlayout
Definition UiTools.cpp:18