Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
97c08a56
Commit
97c08a56
authored
Nov 06, 2019
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Fixed so the warranty is only displayed once.
parent
0d43a494
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
xtt/lib/cow/qt/cow_wow_qt.cqt
xtt/lib/cow/qt/cow_wow_qt.cqt
+5
-1
xtt/lib/cow/qt/cow_wow_qt.h
xtt/lib/cow/qt/cow_wow_qt.h
+2
-1
No files found.
xtt/lib/cow/qt/cow_wow_qt.cqt
View file @
97c08a56
...
@@ -389,6 +389,10 @@ CoWowWarrantQt::CoWowWarrantQt(CoWowQtObject* parent)
...
@@ -389,6 +389,10 @@ CoWowWarrantQt::CoWowWarrantQt(CoWowQtObject* parent)
void CoWowQtObject::DisplayWarranty()
void CoWowQtObject::DisplayWarranty()
{
{
// Display only once
if (wow->HideWarranty()) {
return;
}
new CoWowWarrantQt(this);
new CoWowWarrantQt(this);
}
}
...
@@ -917,7 +921,7 @@ void CoWowQt::update_title(QWidget* w, int editmode)
...
@@ -917,7 +921,7 @@ void CoWowQt::update_title(QWidget* w, int editmode)
CoWowQt::CoWowQt(QWidget* parent)
CoWowQt::CoWowQt(QWidget* parent)
{
{
object = new CoWowQtObject(parent);
object = new CoWowQtObject(parent
, this
);
m_wait_timerid = new QTimer(object);
m_wait_timerid = new QTimer(object);
}
}
...
...
xtt/lib/cow/qt/cow_wow_qt.h
View file @
97c08a56
...
@@ -234,8 +234,9 @@ class CoWowQtObject : public QObject {
...
@@ -234,8 +234,9 @@ class CoWowQtObject : public QObject {
Q_OBJECT
Q_OBJECT
public:
public:
CoWowQtObject
(
QWidget
*
parent
)
:
QObject
(),
parent_wid
(
parent
)
{}
CoWowQtObject
(
QWidget
*
parent
,
CoWowQt
*
w
)
:
QObject
(),
parent_wid
(
parent
),
wow
(
w
)
{}
QWidget
*
parent_wid
;
QWidget
*
parent_wid
;
CoWowQt
*
wow
;
public
slots
:
public
slots
:
void
DisplayWarranty
();
void
DisplayWarranty
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment