Toolbox Qt
Loading...
Searching...
No Matches
widgethelper.h
1#ifndef TBQ_CORE_WIDGETHELPER_H
2#define TBQ_CORE_WIDGETHELPER_H
3
4#include <QDir>
5#include <QLabel>
6#include <QLineEdit>
7
8#include "toolboxqt/toolboxqt_global.h"
9
10namespace tbq
11{
12
13class TOOLBOXQT_EXPORT WidgetHelper
14{
15public:
16 static void labelSetPathDir(QLabel *label, const QDir &dir, bool verifyExist);
17 static void labelSetPathFile(QLabel *label, const QFileInfo &fileInfo, bool verifyExist);
18
19 static void lineEditSetAsInputPasswd(QLineEdit *lineEdit, const QIcon &iconShow, const QIcon &iconHide, const QString &txtShow = "Show password", const QString &txtHide = "Hide password");
20};
21
22} // namespace tbq
23
24#endif // TBQ_CORE_WIDGETHELPER_H
Class containing multiple helpful methods related to widgets.
Definition widgethelper.h:14
Namespace used for ToolBoxQt library.
Definition array2d.h:12