]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/FloatPlacement.cpp
On Linux show in crash message box the backtrace
[lyx.git] / src / frontends / qt4 / FloatPlacement.cpp
index c40b3b2ec7b1e80e5dc568216c8c2286a05db566..be5cf0543ae5be78dcb9a7207c1c2b4da2e7383e 100644 (file)
 #include "Buffer.h"
 #include "BufferParams.h"
 #include "FloatList.h"
+#include "TextClass.h"
 
 #include "insets/InsetFloat.h"
 #include "support/lstrings.h"
 
+#include <map>
+
 using namespace std;
 using namespace lyx::support;
 
@@ -44,6 +47,8 @@ FloatPlacement::FloatPlacement(bool show_options, QWidget * parent)
        connect(spanCB, SIGNAL(clicked()), this, SLOT(changedSlot()));
        connect(sidewaysCB, SIGNAL(clicked()), this, SLOT(changedSlot()));
 
+       floatTypeTitle->setVisible(show_options);
+       floatTypeCO->setVisible(show_options);
        spanCB->setVisible(show_options);
        sidewaysCB->setVisible(show_options);
 }
@@ -124,7 +129,7 @@ void FloatPlacement::initFloatTypeCO(FloatList const & floats)
        FloatList::const_iterator const end = floats.end();
        for (; it != end; ++it) {
                floatTypeCO->addItem(qt_(it->second.name()),
-                                    toqstr(it->second.type()));
+                                    toqstr(it->second.floattype()));
        }
 }