]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/ButtonController.cpp
Some improvements to the graphics dialog
[lyx.git] / src / frontends / qt4 / ButtonController.cpp
index bccae6a706463f355706e5c3f42d4ac64c2e676e..ccac674e4aa449f8a58edf2490663a7ee117fec1 100644 (file)
@@ -15,7 +15,6 @@
 #include "qt_helpers.h"
 
 #include "support/debug.h"
-#include "support/foreach.h"
 
 #include <QCheckBox>
 #include <QPushButton>
@@ -102,7 +101,7 @@ public:
        bool checkWidgets() const
        {
                bool valid = true;
-               foreach (const CheckedLineEdit & w, checked_widgets_) 
+               for (const CheckedLineEdit & w : checked_widgets_)
                        valid &= w.check();
                return valid;
        }
@@ -252,10 +251,8 @@ void ButtonController::refreshReadOnly() const
 {
        if (d->read_only_.empty())
                return;
-
        bool const enable = !policy().isReadOnly();
-       
-       foreach (QWidget * w, d->read_only_)
+       for(QWidget * w : d->read_only_)
                setWidgetEnabled(w, enable);
 }