8000 Star to Bookmark MUCs by urvashipriyam · Pull Request #19 · swift/swift · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Star to Bookmark MUCs #19

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

urvashipriyam
Copy link

Added a star to the top bar of a MUC (beside the subject). It's grey when the MUC isn't bookmarked, and yellow if it is. Clicking it pops up the add bookmark/edit bookmark properties.

License:
This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.

@@ -92,6 +92,11 @@ QtChatWindow::QtChatWindow(const QString& contact, QtChatTheme* theme, UIEventSt
subjectLayout_->addWidget(subject_);
setSubject("");
subject_->setReadOnly(true);

bookmarkStar_ = new QPushButton(this);
connect(bookmarkStar_, SIGNAL(clicked()), this, SLOT(onBookmarkStarClicked()));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Our convention for slot names is a 'handle' prefix instead of 'on'. See the other slots used in this file.

@tfar
Copy link
Collaborator
tfar commented Jan 6, 2016

Finally it would be great if you could license the PR under the BSD license by adding

License:
This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.

to the commit message, similar to danielbcs@f34a0eb .

@urvashipriyam
Copy link
Author

@tfar Please Checkout the new commit. It includes the changes you suggested. Thanks for your help & feedback!

@tfar
Copy link
Collaborator
tfar commented Jan 12, 2016

@urvashipriyam any news on this? IIRC you wanted to change the code to use a QCheckBox instead like it's done in https://github.com/swift/swift/blob/master/Swift/QtUI/QtVCardWidget/QtVCardGeneralField.cpp#L35 to allow quick change between bookmarked/not-bookmark states without having to go through a dialog.

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.

2 participants
0