summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-20 20:38:54 +0100
committerAndrei Karas <akaras@inbox.ru>2012-01-22 19:44:20 +0300
commit07ecab051e47f2a934acef615294db496520e87c (patch)
tree760939e162960cd47cb76e65bc85de321ea2ab27
parente4add227d27ea87538906b856069c23da27dbdac (diff)
downloadmanaverse-07ecab051e47f2a934acef615294db496520e87c.tar.gz
manaverse-07ecab051e47f2a934acef615294db496520e87c.tar.bz2
manaverse-07ecab051e47f2a934acef615294db496520e87c.tar.xz
manaverse-07ecab051e47f2a934acef615294db496520e87c.zip
Made the update window bigger and resizable
Also made it remember its size and position. Reviewed-by: Erik Schilling Conflicts: src/gui/updaterwindow.cpp
-rw-r--r--src/gui/updaterwindow.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/updaterwindow.cpp b/src/gui/updaterwindow.cpp
index 39dde65c3..28bd8467c 100644
--- a/src/gui/updaterwindow.cpp
+++ b/src/gui/updaterwindow.cpp
@@ -155,6 +155,12 @@ UpdaterWindow::UpdaterWindow(const std::string &updateHost,
mLoadUpdates(applyUpdates),
mUpdateType(updateType)
{
+ setWindowName("UpdaterWindow");
+ setResizable(true);
+ setDefaultSize(450, 400, ImageRect::CENTER);
+ setMinWidth(320);
+ setMinHeight(240);
+
mBrowserBox = new BrowserBox;
mScrollArea = new ScrollArea(mBrowserBox);
mLabel = new Label(_("Connecting..."));
@@ -175,14 +181,12 @@ UpdaterWindow::UpdaterWindow(const std::string &updateHost,
placer(3, 5, mCancelButton);
placer(4, 5, mPlayButton);
- reflowLayout(450, 400);
-
Layout &layout = getLayout();
layout.setRowHeight(0, Layout::AUTO_SET);
addKeyListener(this);
- center();
+ loadWindowState();
setVisible(true);
mCancelButton->requestFocus();