r19006 by fschmid - Don't waste vertical space with an empty status-bar

scribus-commit scribus-commit at lists.scribus.net
Sat Apr 5 08:07:29 UTC 2014


Author: fschmid
Date: Sat Apr  5 08:07:29 2014
New Revision: 19006

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19006
Log:
Don't waste vertical space with an empty status-bar

Modified:
    trunk/Scribus/scribus/scribuswin.cpp
    trunk/Scribus/scribus/scribuswin.h

Modified: trunk/Scribus/scribus/scribuswin.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19006&path=/trunk/Scribus/scribus/scribuswin.cpp
==============================================================================
--- trunk/Scribus/scribus/scribuswin.cpp (original)
+++ trunk/Scribus/scribus/scribuswin.cpp Sat Apr  5 08:07:29 2014
@@ -121,9 +121,3 @@
 	}
 	ce->accept();
 }
-
-void ScribusWin::resizeEvent(QResizeEvent *re)
-{
-	statusBar()->setSizeGripEnabled(!isMaximized());
-}
-

Modified: trunk/Scribus/scribus/scribuswin.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19006&path=/trunk/Scribus/scribus/scribuswin.h
==============================================================================
--- trunk/Scribus/scribus/scribuswin.h (original)
+++ trunk/Scribus/scribus/scribuswin.h Sat Apr  5 08:07:29 2014
@@ -25,10 +25,7 @@
 #define SCRIBUSWIN_H
 
 #include <QMainWindow>
-#include <QFrame>
 #include <QCloseEvent>
-#include <QResizeEvent>
-#include <QHBoxLayout>
 #include <QMdiSubWindow>
 
 class ScribusDoc;
@@ -49,7 +46,6 @@
 	ScribusWin(QWidget* parent, ScribusDoc* doc);
 	~ScribusWin() {};
 	void closeEvent(QCloseEvent *ce);
-	void resizeEvent(QResizeEvent *re);
 	void setView(ScribusView* newView);
 	void setMainWindow(ScribusMainWindow *);
 	ScribusView* view() const { return m_View;}
@@ -64,11 +60,9 @@
 	void AutoSaved();
 
 protected:
-	QHBoxLayout* statusFrameLayout;
 	ScribusMainWindow* m_MainWindow;
 	ScribusView* m_View;
 	ScribusDoc* m_Doc;
-	//QFrame *statusFrame;
 	QMdiSubWindow* subWindow;
 	int winIndex;
 };




More information about the scribus-commit mailing list