BigBlueBox
An Inventory Management System for a NYLT Course or other Boy Scout Programs
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
framelesswindow.h
Go to the documentation of this file.
1 /*
2 ###############################################################################
3 # #
4 # The MIT License #
5 # #
6 # Copyright (C) 2017 by Juergen Skrotzky (JorgenVikingGod@gmail.com) #
7 # >> https://github.com/Jorgen-VikingGod #
8 # #
9 # Sources: https://github.com/Jorgen-VikingGod/Qt-Frameless-Window-DarkStyle #
10 # #
11 ###############################################################################
12 */
13 
14 #ifndef FRAMELESSWINDOW_H
15 #define FRAMELESSWINDOW_H
16 
17 #include "ui_framelesswindow.h"
18 
19 class FramelessWindow: public QWidget, private Ui::FramelessWindow
20 {
21  Q_OBJECT
22 
23 public:
24  explicit FramelessWindow(QWidget *parent = 0);
25  void setContent(QWidget *w);
26 
27 private:
28  void styleWindow(bool bActive, bool bNoState);
29 
30 public slots:
31  void setWindowTitle(const QString &text);
32 
33 private slots:
34  void on_applicationStateChanged(Qt::ApplicationState state);
40 
41 protected:
42  virtual void changeEvent(QEvent *event);
43 
44 protected:
45  QHBoxLayout contentLayout;
46 };
47 
48 #endif // FRAMELESSWINDOW_H
void on_closeButton_clicked()
Definition: framelesswindow.cpp:158
QHBoxLayout contentLayout
Definition: framelesswindow.h:45
virtual void changeEvent(QEvent *event)
Definition: framelesswindow.cpp:48
void setWindowTitle(const QString &text)
Definition: framelesswindow.cpp:69
void styleWindow(bool bActive, bool bNoState)
Definition: framelesswindow.cpp:74
void setContent(QWidget *w)
Definition: framelesswindow.cpp:62
Definition: framelesswindow.h:19
void on_windowTitlebar_doubleClicked()
Definition: framelesswindow.cpp:163
void on_minimizeButton_clicked()
Definition: framelesswindow.cpp:140
void on_applicationStateChanged(Qt::ApplicationState state)
Definition: framelesswindow.cpp:123
FramelessWindow(QWidget *parent=0)
Definition: framelesswindow.cpp:17
void on_restoreButton_clicked()
Definition: framelesswindow.cpp:145
void on_maximizeButton_clicked()
Definition: framelesswindow.cpp:151