-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed crash reporting U.X. #1507
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -382,7 +382,9 @@ class AvatarPreference : public BrowsePreference { | |
|
||
class CheckPreference : public BoolPreference { | ||
Q_OBJECT | ||
//Q_PROPERTY(bool enabled READ getEnabled CONSTANT) | ||
Q_PROPERTY(bool indented READ getIndented CONSTANT) | ||
Q_PROPERTY(QString functionalityDisabledTooltip READ getFunctionalityDisabledTooltip CONSTANT) | ||
public: | ||
using Getter = std::function<bool()>; | ||
using Setter = std::function<void(const bool&)>; | ||
|
@@ -391,10 +393,21 @@ class CheckPreference : public BoolPreference { | |
: BoolPreference(category, name, getter, setter) { } | ||
Type getType() override { return Checkbox; } | ||
|
||
//bool getEnabled() { return _isEnabled; } | ||
//void setEnabled(const bool enabled) { _isEnabled = enabled; } | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this being added? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I was using that for a previous approach and decided to leave it as a comment rather than taking it out, since it might still be useful at some point. You can remove it if you want. |
||
bool getIndented() { return _isIndented; } | ||
void setIndented(const bool indented) { _isIndented = indented; } | ||
|
||
//const QString& getTooltip() { return _tooltip; } | ||
//void setTooltip(const QString tooltip) { _tooltip = tooltip; } | ||
|
||
const QString& getFunctionalityDisabledTooltip() { return _functionalityDisabledTooltip; } | ||
void setFunctionalityDisabledTooltip(const QString functionalityDisabledTooltip) { _functionalityDisabledTooltip = functionalityDisabledTooltip; } | ||
protected: | ||
//bool _isEnabled { true }; | ||
bool _isIndented { false }; | ||
QString _functionalityDisabledTooltip; | ||
}; | ||
|
||
class PrimaryHandPreference : public StringPreference { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why doesn't it work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if I am looking at this right, but is
1 : 0
a division by zero?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Julian: No, '?' is a ternary operator. https://en.wikipedia.org/wiki/%3F:#C++
Dale: I have no idea. That's why I couldn't get it to work. See my previous comment on this P.R. I tried several things to isolate the issue but had to give up before figuring it out. Sorry.