]> git.lyx.org Git - features.git/commitdiff
even less framing
authorAndré Pönitz <poenitz@gmx.net>
Sun, 16 Nov 2008 15:32:11 +0000 (15:32 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Sun, 16 Nov 2008 15:32:11 +0000 (15:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27556 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 89ecfd65ba89244923beba97528e6af9596961f9..108bd0451ea192a00e7d03473828a4ec21d0b3e7 100644 (file)
@@ -159,9 +159,9 @@ struct GuiView::GuiViewPrivate
                in_show_(false)
        {
                // hardcode here the platform specific icon size
-               smallIconSize = 14;     // scaling problems
-               normalIconSize = 20;    // ok, default
-               bigIconSize = 26;               // better for some math icons
+               smallIconSize = 14;  // scaling problems
+               normalIconSize = 20; // ok, default
+               bigIconSize = 26;    // better for some math icons
 
                splitter_ = new QSplitter;
                bg_widget_ = new BackgroundWidget;
@@ -936,27 +936,28 @@ void GuiView::setCurrentWorkArea(GuiWorkArea * wa)
                return;
        }
        GuiWorkArea * old_gwa = theGuiApp()->currentView()->currentWorkArea();
-       if (old_gwa != wa) {
-               theGuiApp()->setCurrentView(this);
-               d.current_work_area_ = wa;
-               for (int i = 0; i != d.splitter_->count(); ++i) {
-                       if (d.tabWorkArea(i)->setCurrentWorkArea(wa)) {
-                               if (d.current_main_work_area_)
-                                       d.current_main_work_area_->setFrameStyle(QFrame::NoFrame);
-                               d.current_main_work_area_ = wa;
-                               d.current_main_work_area_->setFrameStyle(QFrame::Box | QFrame::Plain);
-                               //d.current_main_work_area_->setLineWidth(2);
-                               LYXERR(Debug::DEBUG, "Current wa: " << currentWorkArea() << ", Current main wa: " << currentMainWorkArea());
-                               return;
-                       }
+       if (old_gwa == wa)
+               return;
+
+       theGuiApp()->setCurrentView(this);
+       d.current_work_area_ = wa;
+       for (int i = 0; i != d.splitter_->count(); ++i) {
+               if (d.tabWorkArea(i)->setCurrentWorkArea(wa)) {
+                       //if (d.current_main_work_area_)
+                       //      d.current_main_work_area_->setFrameStyle(QFrame::NoFrame);
+                       d.current_main_work_area_ = wa;
+                       //d.current_main_work_area_->setFrameStyle(QFrame::Box | QFrame::Plain);
+                       //d.current_main_work_area_->setLineWidth(2);
+                       LYXERR(Debug::DEBUG, "Current wa: " << currentWorkArea() << ", Current main wa: " << currentMainWorkArea());
+                       return;
                }
-               LYXERR(Debug::DEBUG, "This is not a tabbed wa");
-               on_currentWorkAreaChanged(wa);
-               BufferView & bv = wa->bufferView();
-               bv.cursor().fixIfBroken();
-               bv.updateMetrics();
-               wa->setUpdatesEnabled(true);
        }
+       LYXERR(Debug::DEBUG, "This is not a tabbed wa");
+       on_currentWorkAreaChanged(wa);
+       BufferView & bv = wa->bufferView();
+       bv.cursor().fixIfBroken();
+       bv.updateMetrics();
+       wa->setUpdatesEnabled(true);
        LYXERR(Debug::DEBUG, "Current wa: " << currentWorkArea() << ", Current main wa: " << currentMainWorkArea());
 }