]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Action.C
get rid of QT3_SUPPORT and some cleanup
[lyx.git] / src / frontends / qt4 / Action.C
index edfc308f1958d9349b936065db6d1ffef9aed542..58b58f2987f60bd38c26932679fe89820ca2bc71 100644 (file)
 
 #include <config.h>
 
+#include "Action.h"
+
 #include "BufferView.h"
 #include "lyx_cb.h"
 #include "lyxfunc.h"
 #include "FuncStatus.h"
-
 #include "debug.h"
 
-#include <boost/bind.hpp>
-
 #include "frontends/LyXView.h"
-#include "qt_helpers.h"
 
-#include "Action.h"
+#include "qt_helpers.h"
 
 #include "support/lstrings.h"
 
+#include <boost/bind.hpp>
+
+
 using std::string;
 using std::endl;
 
@@ -41,10 +42,10 @@ int const statusbar_timer_value = 3000;
 
 Action::Action(LyXView & lyxView, string const & text,
                FuncRequest const & func, string const & tooltip)
-               : QAction(this), lyxView_(lyxView), func_(func)
+       : QAction(this), func_(func), lyxView_(lyxView)
 {
-       setText(tr(toqstr(text)));
-       setToolTip(tr(toqstr(tooltip)));
+       setText(toqstr(text));
+       setToolTip(toqstr(tooltip));
        setStatusTip(toqstr(tooltip));
        connect(this, SIGNAL(triggered()), this, SLOT(action()));
        this->setCheckable(true);
@@ -52,11 +53,11 @@ Action::Action(LyXView & lyxView, string const & text,
 
 Action::Action(LyXView & lyxView, string const & icon, string const & text,
                FuncRequest const & func, string const & tooltip)
-               : QAction(this), lyxView_(lyxView), func_(func)
+               : QAction(this), func_(func), lyxView_(lyxView)
 {
        setIcon(QPixmap(icon.c_str()));
-       setText(tr(toqstr(text)));
-       setToolTip(tr(toqstr(tooltip)));
+       setText(toqstr(text));
+       setToolTip(toqstr(tooltip));
        setStatusTip(toqstr(tooltip));
        connect(this, SIGNAL(triggered()), this, SLOT(action()));
        this->setCheckable(true);