summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-04 21:41:49 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-04 21:41:49 (GMT)
commitd18f20669671991825230fe956acd472cca999fc (patch)
tree1b518a83909ffb93fd49f051af6ee6512b41181b /Swift/QtUI/QtLoginWindow.cpp
parent76cffe6bf98c95af728d01e015d2ee767e1eabc6 (diff)
downloadswift-d18f20669671991825230fe956acd472cca999fc.zip
swift-d18f20669671991825230fe956acd472cca999fc.tar.bz2
Cleaned up some unused code.
Diffstat (limited to 'Swift/QtUI/QtLoginWindow.cpp')
-rw-r--r--Swift/QtUI/QtLoginWindow.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp
index 42a8f49..7d17f88 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -197,17 +197,6 @@ void QtLoginWindow::handleUIEvent(boost::shared_ptr<UIEvent> event) {
}
}
-/**
- * Move and resize the window, but respect minimum sizes.
- * (Like QWidget::setGeometry, only that will truncate the window
- * the setGeometry docs say that it shouldn't do this, but I've just seen it
- * maybe we can remove this method if that's a Qt bug (or I'm misusing it)).
- */
-void QtLoginWindow::setGentleGeometry(const QRect& rect) {
- resize(rect.size());
- move(rect.topLeft());
-}
-
void QtLoginWindow::selectUser(const String& username) {
for (int i = 0; i < usernames_.count(); i++) {
if (P2QSTRING(username) == usernames_[i]) {
@@ -218,18 +207,6 @@ void QtLoginWindow::selectUser(const String& username) {
}
}
-QRect QtLoginWindow::defaultPosition() {
- QDesktopWidget desktop;
- int windowWidth = 200;
- int windowHeight = 500;
- QRect screen = desktop.screenGeometry(-1); //appear on default screen
- windowWidth = std::min(windowWidth, screen.width());
- windowHeight = std::min(windowHeight, screen.height());
- int left = (screen.width() - windowWidth) / 2;
- int height = (screen.height() - windowHeight) / 2;
- return QRect(left, height, windowWidth, windowHeight);
-}
-
void QtLoginWindow::addAvailableAccount(const String& defaultJID, const String& defaultPassword, const String& defaultCertificate) {
QString username = P2QSTRING(defaultJID);
int index = -1;