-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmm_to_inch_app.h
35 lines (29 loc) · 910 Bytes
/
mm_to_inch_app.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef MM_TO_INCH_APP_H
#define MM_TO_INCH_APP_H
#include <QMainWindow>
#include <QSystemTrayIcon>
#include "windows.h" // Connect WinAPI library
#include "pop_up_unit_converter.h"
QT_BEGIN_NAMESPACE
namespace Ui { class mm_to_inch_app; }
QT_END_NAMESPACE
class mm_to_inch_app : public QMainWindow
{
Q_OBJECT
public:
mm_to_inch_app(QWidget *parent = nullptr);
~mm_to_inch_app();
pop_up_unit_converter *converter;
virtual void changeEvent(QEvent *event) override;
virtual void closeEvent(QCloseEvent *event) override;
protected:
// The method for processing native events from the OS in Qt
bool nativeEvent(const QByteArray &eventType, void *message, long *result);
private slots:
void iconActivated(QSystemTrayIcon::ActivationReason reason);
private:
Ui::mm_to_inch_app *ui;
QSystemTrayIcon *trayIcon;
QClipboard *clipboard;
};
#endif // MM_TO_INCH_APP_H