|
|
@ -89,7 +89,7 @@ int SliderAction::plug( TQWidget *w, int index )
|
|
|
|
|
|
|
|
|
|
|
|
TDEToolBar *toolBar = (TDEToolBar *)w;
|
|
|
|
TDEToolBar *toolBar = (TDEToolBar *)w;
|
|
|
|
int id = TDEAction::getToolButtonID();
|
|
|
|
int id = TDEAction::getToolButtonID();
|
|
|
|
|
|
|
|
|
|
|
|
//Create it.
|
|
|
|
//Create it.
|
|
|
|
m_slider=new L33tSlider(0, 1000, 100, 0,Qt::Horizontal, toolBar);
|
|
|
|
m_slider=new L33tSlider(0, 1000, 100, 0,Qt::Horizontal, toolBar);
|
|
|
|
m_slider->setMinimumWidth(10);
|
|
|
|
m_slider->setMinimumWidth(10);
|
|
|
@ -102,7 +102,7 @@ int SliderAction::plug( TQWidget *w, int index )
|
|
|
|
|
|
|
|
|
|
|
|
if (w->inherits( "TDEToolBar" ))
|
|
|
|
if (w->inherits( "TDEToolBar" ))
|
|
|
|
connect(toolBar, TQT_SIGNAL(moved(TDEToolBar::BarPosition)), this, TQT_SLOT(toolbarMoved(TDEToolBar::BarPosition)));
|
|
|
|
connect(toolBar, TQT_SIGNAL(moved(TDEToolBar::BarPosition)), this, TQT_SLOT(toolbarMoved(TDEToolBar::BarPosition)));
|
|
|
|
|
|
|
|
|
|
|
|
emit plugged();
|
|
|
|
emit plugged();
|
|
|
|
|
|
|
|
|
|
|
|
return containerCount() - 1;
|
|
|
|
return containerCount() - 1;
|
|
|
@ -111,16 +111,16 @@ int SliderAction::plug( TQWidget *w, int index )
|
|
|
|
void SliderAction::toolbarMoved(TDEToolBar::BarPosition)
|
|
|
|
void SliderAction::toolbarMoved(TDEToolBar::BarPosition)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// I wish this worked :)
|
|
|
|
// I wish this worked :)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
if (pos == TDEToolBar::Left || pos == TDEToolBar::Right)
|
|
|
|
if (pos == TDEToolBar::Left || pos == TDEToolBar::Right)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_slider->setOrientationQt::Vertical);
|
|
|
|
m_slider->setOrientation(Qt::Vertical);
|
|
|
|
m_slider->setFixedWidth(m_slider->height());
|
|
|
|
m_slider->setFixedWidth(m_slider->height());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_slider->setOrientationQt::Horizontal);
|
|
|
|
m_slider->setOrientation(Qt::Horizontal);
|
|
|
|
m_slider->resize(m_slider->height(), m_slider->height());
|
|
|
|
m_slider->resize(m_slider->height(), m_slider->height());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|