File tree Expand file tree Collapse file tree
CustomFrame-Dynamic/customtitlebar
CustomFrame-Static/customtitlebar Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44# Developer: Mauro Mascarenhas de Araújo
55# Contact: mauro.mascarenhas@nintersoft.com
66# Licence: Mozilla Public Licence 2.0
7- # Date: 24 of August of 2020
7+ # Date: 25 of August of 2020
88#
99# Licence notice
1010#
3838#include < QPushButton>
3939#include < QStyleOption>
4040
41- #include < exception >
41+ #include < stdexcept >
4242
4343namespace QCustomAttrs {
4444 enum WindowButton {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ QTitleBar::QTitleBar(QMainWindow *parent) :
4545 " QTitleBar { background: white; }\n "
4646 ));
4747
48- if (!parent) throw std::exception (" Parent must be a QCustomWindow object (cannot be null)." );
48+ if (!parent) throw std::invalid_argument (" Parent must be a QCustomWindow object (cannot be null)." );
4949 this ->m_parentWindow = parent;
5050
5151 this ->lbl_windowTitle .setText (" QCustomWindow" );
Original file line number Diff line number Diff line change 3030#include < QPushButton>
3131#include < QStyleOption>
3232
33- #include < exception >
33+ #include < stdexcept >
3434
3535namespace QCustomAttrs {
3636 enum WindowButton {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ QTitleBar::QTitleBar(QMainWindow *parent) :
4545 " QTitleBar { background: white; }\n "
4646 ));
4747
48- if (!parent) throw std::exception (" Parent must be a QCustomWindow object (cannot be null)." );
48+ if (!parent) throw std::invalid_argument (" Parent must be a QCustomWindow object (cannot be null)." );
4949 this ->m_parentWindow = parent;
5050
5151 this ->lbl_windowTitle .setText (" QCustomWindow" );
Original file line number Diff line number Diff line change 3838#include < QPushButton>
3939#include < QStyleOption>
4040
41- #include < exception >
41+ #include < stdexcept >
4242
4343namespace QCustomAttrs {
4444 enum WindowButton {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ QTitleBar::QTitleBar(QMainWindow *parent) :
4545 " QTitleBar { background: white; }\n "
4646 ));
4747
48- if (!parent) throw std::exception (" Parent must be a QCustomWindow object (cannot be null)." );
48+ if (!parent) throw std::invalid_argument (" Parent must be a QCustomWindow object (cannot be null)." );
4949 this ->m_parentWindow = parent;
5050
5151 this ->lbl_windowTitle .setText (" QCustomWindow" );
Original file line number Diff line number Diff line change 3030#include < QPushButton>
3131#include < QStyleOption>
3232
33- #include < exception >
33+ #include < stdexcept >
3434
3535namespace QCustomAttrs {
3636 enum WindowButton {
You can’t perform that action at this time.
0 commit comments