- Format MainWindow.cpp, MainWindow.h, main.cpp - Format test files (test_main.cpp, test_mainwindow.cpp) - Fixes Jenkins clang-format policy check Entire-Checkpoint: ea47c089bf3a Signed-off-by: twi-devel <torsten.wierschin@life-maps.com>
33 lines
543 B
C++
33 lines
543 B
C++
#pragma once
|
|
|
|
#include <QMainWindow>
|
|
#include <QRegularExpression>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
namespace Ui
|
|
{
|
|
class MainWindow;
|
|
}
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget* parent = nullptr);
|
|
~MainWindow();
|
|
|
|
[[nodiscard]] bool validateInput(const QString& text) const;
|
|
[[nodiscard]] QString getScreenInfo() const;
|
|
|
|
public slots:
|
|
void onValidateClicked();
|
|
void onScreenInfoClicked();
|
|
|
|
private:
|
|
Ui::MainWindow* ui;
|
|
QRegularExpression m_pattern;
|
|
}; |