summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-11-09 12:46:56 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-12-23 11:46:07 (GMT)
commit6dd8736e93c6881677c4132307289cccb663fe00 (patch)
treece768ba89d4e9c230de3a54a82099e6475b8fb10 /Swift/QtUI/QtStatusWidget.cpp
parent90e22d09c0e7131744c9e343622013547319daf7 (diff)
downloadswift-6dd8736e93c6881677c4132307289cccb663fe00.zip
swift-6dd8736e93c6881677c4132307289cccb663fe00.tar.bz2
Clear out status message when setting a new one.
We remember recent presence so this probably makes more sense - it means you immediately get a chance to type what you want with the dropdown showing recents. Change-Id: Ic042a863c37fc7f35d987aaf4f2dc040522116bb
Diffstat (limited to 'Swift/QtUI/QtStatusWidget.cpp')
-rw-r--r--Swift/QtUI/QtStatusWidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Swift/QtUI/QtStatusWidget.cpp b/Swift/QtUI/QtStatusWidget.cpp
index 7c1c831..1899b71 100644
--- a/Swift/QtUI/QtStatusWidget.cpp
+++ b/Swift/QtUI/QtStatusWidget.cpp
@@ -190,29 +190,29 @@ void QtStatusWidget::handleClicked() {
int screen = desktop->screenNumber(this);
QPoint point = mapToGlobal(QPoint(0, height()));
QRect geometry = desktop->availableGeometry(screen);
int x = point.x();
int y = point.y();
int width = 200;
int height = 80;
int screenWidth = geometry.x() + geometry.width();
if (x + width > screenWidth) {
x = screenWidth - width;
}
- foreach (StatusShow::Type type, allTypes_) {
- if (statusEdit_->text() == P2QSTRING(statusShowTypeToFriendlyName(type))) {
+ //foreach (StatusShow::Type type, allTypes_) {
+ // if (statusEdit_->text() == P2QSTRING(statusShowTypeToFriendlyName(type))) {
statusEdit_->setText("");
- }
- }
+ // }
+ //}
generateList();
height = menu_->sizeHintForRow(0) * menu_->count();
int marginLeft;
int marginTop;
int marginRight;
int marginBottom;
menu_->getContentsMargins(&marginLeft, &marginTop, &marginRight, &marginBottom);
height += marginTop + marginBottom;
width += marginLeft + marginRight;
menu_->setGeometry(x, y, width, height);