Skip to content
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

Small usability enhancements. #82

Merged
merged 3 commits into from
May 12, 2014
Merged

Small usability enhancements. #82

merged 3 commits into from
May 12, 2014

Conversation

p-groarke
Copy link
Contributor

There was no need to ask to save changes when you switch settings page. Also, to help guide users, the Apply button is greyed when there no changes. ++cognitive stuff.

@OBSJenkins
Copy link

Can one of the admins verify this patch?

@@ -743,19 +741,28 @@ void OBSBasicSettings::on_baseResolution_editTextChanged(const QString &text)
void OBSBasicSettings::GeneralChanged()
{
if (!loading)
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    if (!loading) {
        …
    }

according to the style guide

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noted

@p-groarke p-groarke changed the title Dont ask to save changes on item switch, better apply button. [WIP] Small usability changes. May 9, 2014
@p-groarke
Copy link
Contributor Author

Added a message box to tell the user he needs a scene before adding a source.

@p-groarke p-groarke changed the title [WIP] Small usability changes. Small usability enhancements. May 9, 2014
@p-groarke
Copy link
Contributor Author

Done, I think these few feature are helpful from a user standpoint. Open for review.

@@ -33,5 +33,6 @@ class NameDialog : public QDialog {
NameDialog(QWidget *parent);

static bool AskForName(QWidget *parent, const QString &title,
const QString &text, std::string &str);
const QString &text, std::string &str,
const QString &placeHolder = QString(""));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those lines are too long, make sure to stay within the limit (other lines might be too long as well)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is weird, it is ok on my side...

@palana
Copy link
Contributor

palana commented May 9, 2014

Also squash commits like Socapex@f25a3695704d3e6fdab732fa0d2291605c016a17 and Socapex@e39b800ec641f51bc2a762fd9080a4dc2c320ff1

@jp9000
Copy link
Member

jp9000 commented May 11, 2014

Woops, I think I caused a conflict with my last commit. Do you want to resolve?

int count = 1;

for (int i = 0; i < ui->sources->count(); ++i) {
if (ui->sources->item(i)->text().contains(QT_UTF8(placeHolderText)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is too long, I suggest replacing placeHolderText on line 1040

QString const placeHolderText{QT_UTF8(obs_source_getdisplayname(…))};

to avoid this issue

Socapex added 3 commits May 12, 2014 13:34
Don't ask user to save changes every item switch.
Apply button greyed out when there are no changes.
NameDialog can have placeholder text.
Localize scene number.
Pre-select scene and source text.
jp9000 added a commit that referenced this pull request May 12, 2014
Small usability enhancements.
@jp9000 jp9000 merged commit 29443ea into obsproject:master May 12, 2014
Gol-D-Ace pushed a commit to Gol-D-Ace/obs-studio that referenced this pull request Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants