-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ScopyStatusBar: added MenuAnim and StatusMessage to status bar
Signed-off-by: Andrei-Fabian-Pop <[email protected]>
- Loading branch information
1 parent
b803ccb
commit eaf2ec2
Showing
16 changed files
with
345 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef SCOPY_VERSIONCHECKMESSAGE_H | ||
#define SCOPY_VERSIONCHECKMESSAGE_H | ||
|
||
#include <QPushButton> | ||
#include <QWidget> | ||
|
||
#include <popupwidget.h> | ||
|
||
namespace scopy { | ||
class VersionCheckMessage : public QWidget | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit VersionCheckMessage(QWidget *parent = nullptr); | ||
~VersionCheckMessage(); | ||
|
||
Q_SIGNALS: | ||
void setCheckVersion(bool allowed); | ||
|
||
private Q_SLOTS: | ||
void saveCheckVersion(bool allowed); | ||
}; | ||
} // namespace scopy | ||
|
||
#endif // SCOPY_VERSIONCHECKMESSAGE_H |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#include "versioncheckmessage.h" | ||
|
||
#include <pluginbase/preferences.h> | ||
#include <QHBoxLayout> | ||
|
||
using namespace scopy; | ||
VersionCheckMessage::VersionCheckMessage(QWidget *parent) | ||
: QWidget(parent) | ||
{ | ||
setLayout(new QHBoxLayout(this)); | ||
layout()->setContentsMargins(0, 0, 0, 0); | ||
auto textLabel = new QLabel("Should Scopy check for online versions? [Yes](yes) [No](no)", this); | ||
connect(textLabel, &QLabel::linkActivated, this, [this](const QString &text) { | ||
if(text == "yes") { | ||
setCheckVersion(true); | ||
} else if(text == "no") { | ||
setCheckVersion(false); | ||
} | ||
|
||
delete this; | ||
}); | ||
textLabel->setTextFormat(Qt::MarkdownText); | ||
textLabel->setTextInteractionFlags(Qt::LinksAccessibleByMouse); | ||
layout()->addWidget(textLabel); | ||
|
||
connect(this, &VersionCheckMessage::setCheckVersion, this, &VersionCheckMessage::saveCheckVersion); | ||
} | ||
|
||
VersionCheckMessage::~VersionCheckMessage() {} | ||
|
||
void VersionCheckMessage::saveCheckVersion(bool allowed) { Preferences::set("general_check_online_version", allowed); } | ||
|
||
#include "moc_versioncheckmessage.cpp" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.