]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/iconpalette.C
Get rid of the static_casts.
[lyx.git] / src / frontends / qt2 / iconpalette.C
index 0d75810cb40b13a55d074781b1b870857144ca08..e0ba4f398c3ac6dda6d7e15d5df6c8356f376a92 100644 (file)
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "debug.h"
 
 #include "iconpalette.h"
+#include "qt_helpers.h"
 
 #include <qlayout.h>
 #include <qpushbutton.h>
@@ -47,7 +45,7 @@ void IconPalette::add(QPixmap const & pixmap, string name, string tooltip)
        QPushButton * p = new QPushButton(this);
        p->setFixedSize(button_size, button_size);
        p->setPixmap(pixmap);
-       QToolTip::add(p, tooltip.c_str());
+       QToolTip::add(p, toqstr(tooltip));
        connect(p, SIGNAL(clicked()), this, SLOT(clicked()));
        buttons_.push_back(make_pair(p, name));
 }