It is sometimes useful to be able to maximize the document settings
window. For example, when adding modules some of the module names are
wide. I tried to allow it, but could not get it to work. Does anyone
have an idea? Attached is a patch with my attempt that does not work.

Scott
diff --git a/src/frontends/qt/GuiDocument.cpp b/src/frontends/qt/GuiDocument.cpp
index 32cc899dc2..1cc6b20871 100644
--- a/src/frontends/qt/GuiDocument.cpp
+++ b/src/frontends/qt/GuiDocument.cpp
@@ -787,6 +787,10 @@ GuiDocument::GuiDocument(GuiView & lv)
 {
 	setupUi(this);
 
+	Qt::WindowFlags flags = windowFlags();
+	flags |= Qt::WindowMaximizeButtonHint;
+	setWindowFlags(flags);
+
 	connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
 		this, SLOT(slotButtonBox(QAbstractButton *)));
 

Attachment: signature.asc
Description: PGP signature

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to