summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-19 20:26:27 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-19 20:26:27 +0300
commit1b21f32b3b7d6e76a41bd8094af4a49a70dd83ef (patch)
treee18954f7af12a6a039b6a77f2989fba45e10d5e4 /src/gui/windows
parent239de381348cba9f2dc114a8f1b9496fea456131 (diff)
downloadmv-1b21f32b3b7d6e76a41bd8094af4a49a70dd83ef.tar.gz
mv-1b21f32b3b7d6e76a41bd8094af4a49a70dd83ef.tar.bz2
mv-1b21f32b3b7d6e76a41bd8094af4a49a70dd83ef.tar.xz
mv-1b21f32b3b7d6e76a41bd8094af4a49a70dd83ef.zip
Use staticbrowserbox in serverinfowindow.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/serverinfowindow.cpp5
-rw-r--r--src/gui/windows/serverinfowindow.h4
2 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/windows/serverinfowindow.cpp b/src/gui/windows/serverinfowindow.cpp
index 989411da6..d071f9cb9 100644
--- a/src/gui/windows/serverinfowindow.cpp
+++ b/src/gui/windows/serverinfowindow.cpp
@@ -24,9 +24,9 @@
#include "gui/gui.h"
-#include "gui/widgets/browserbox.h"
#include "gui/widgets/layout.h"
#include "gui/widgets/scrollarea.h"
+#include "gui/widgets/staticbrowserbox.h"
#include "utils/gettext.h"
#include "utils/process.h"
@@ -40,7 +40,7 @@ ServerInfoWindow::ServerInfoWindow(ServerInfo &serverInfo) :
Window(_("Server info"), Modal_false, nullptr, "serverinfo.xml"),
LinkHandler(),
mServerInfo(serverInfo),
- mBrowserBox(new BrowserBox(this, BrowserBoxMode::AUTO_SIZE, Opaque_true,
+ mBrowserBox(new StaticBrowserBox(this, Opaque_true,
"browserbox.xml")),
mScrollArea(new ScrollArea(this, mBrowserBox,
Opaque_true, "serverinfo_background.xml"))
@@ -132,6 +132,7 @@ void ServerInfoWindow::showServerInfo()
addSourcesList(mServerInfo.docs,
// TRANSLATORS: server info documentation comment
_("##BDocumentation"));
+ mBrowserBox->updateHeight();
}
void ServerInfoWindow::addSourcesList(const std::vector<ServerUrlInfo> &list,
diff --git a/src/gui/windows/serverinfowindow.h b/src/gui/windows/serverinfowindow.h
index 699a00451..810c5b0c3 100644
--- a/src/gui/windows/serverinfowindow.h
+++ b/src/gui/windows/serverinfowindow.h
@@ -27,9 +27,9 @@
#include "net/serverinfo.h"
-class BrowserBox;
class ScrollArea;
class ServerInfo;
+class StaticBrowserBox;
class ServerInfoWindow final : public Window,
public LinkHandler
@@ -59,7 +59,7 @@ class ServerInfoWindow final : public Window,
private:
ServerInfo mServerInfo;
- BrowserBox *mBrowserBox A_NONNULLPOINTER;
+ StaticBrowserBox *mBrowserBox A_NONNULLPOINTER;
ScrollArea *mScrollArea A_NONNULLPOINTER;
};