Commit 8105a531 authored by Claudio Valerio's avatar Claudio Valerio

removed eUBDockPaletteType_NAVIGATOR type because isn't a good type

parent 51467d47
...@@ -533,7 +533,7 @@ bool UBDockPalette::switchMode(eUBDockPaletteWidgetMode mode) ...@@ -533,7 +533,7 @@ bool UBDockPalette::switchMode(eUBDockPaletteWidgetMode mode)
{ {
bool hasVisibleElements = false; bool hasVisibleElements = false;
//-------------------------------// //-------------------------------//
// get full right palette widgets list, parse it, show all widgets for BOARD mode, and hide all other // get full palette widgets list, parse it, show all widgets for BOARD mode, and hide all other
for(int i = 0; i < mRegisteredWidgets.size(); i++) for(int i = 0; i < mRegisteredWidgets.size(); i++)
{ {
UBDockPaletteWidget* pNextWidget = mRegisteredWidgets.at(i); UBDockPaletteWidget* pNextWidget = mRegisteredWidgets.at(i);
......
...@@ -79,8 +79,7 @@ private: ...@@ -79,8 +79,7 @@ private:
typedef enum typedef enum
{ {
eUBDockPaletteType_LEFT, eUBDockPaletteType_LEFT,
eUBDockPaletteType_RIGHT, eUBDockPaletteType_RIGHT
eUBDockPaletteType_NAVIGATOR,
} eUBDockPaletteType; } eUBDockPaletteType;
......
...@@ -24,18 +24,13 @@ ...@@ -24,18 +24,13 @@
* @param name as the object name * @param name as the object name
*/ */
UBNavigatorPalette::UBNavigatorPalette(QWidget *parent, const char *name): UBNavigatorPalette::UBNavigatorPalette(QWidget *parent, const char *name):
UBDockPalette(eUBDockPaletteType_NAVIGATOR, parent, name) UBDockPalette(eUBDockPaletteType_LEFT, parent, name)
, mNavigator(NULL) , mNavigator(NULL)
, mLayout(NULL) , mLayout(NULL)
, mHLayout(NULL) , mHLayout(NULL)
, mPageNbr(NULL) , mPageNbr(NULL)
, mClock(NULL) , mClock(NULL)
{ {
setOrientation(eUBDockOrientation_Left);
setMaximumWidth(300);
resize(UBSettings::settings()->navigPaletteWidth->get().toInt(), height());
mLastWidth = 300;
// Build the gui // Build the gui
mLayout = new QVBoxLayout(this); mLayout = new QVBoxLayout(this);
mLayout->setContentsMargins(customMargin(), customMargin(), 2*border() + customMargin(), customMargin()); mLayout->setContentsMargins(customMargin(), customMargin(), 2*border() + customMargin(), customMargin());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment