QAbstractButton* impBtn = userButton( insertButton( tr( "IMPORT_BTN_TEXT" ) ) );
if( impBtn )
connect( impBtn, SIGNAL( clicked() ), this, SLOT( onImportPref() ) );
+
+ setMinimumSize( 800, 600 );
}
/*!
#include <QDateTimeEdit>
#include <QStackedWidget>
#include <QSlider>
+#include <QScrollArea>
#include <stdio.h>
\param param resource file parameter associated with the preference item
*/
QtxPagePrefFrameItem::QtxPagePrefFrameItem( const QString& title, QtxPreferenceItem* parent,
- const QString& sect, const QString& param )
+ const QString& sect, const QString& param, const bool scrollable )
: QtxPagePrefItem( title, parent, sect, param )
{
QWidget* main = new QWidget();
base->setSpacing( 0 );
base->addWidget( myBox = new QtxGridBox( 1, Qt::Horizontal, main, 5, 5 ) );
- base->addItem( new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding ) );
+ base->addStretch();
+
+ if ( scrollable ) {
+ QScrollArea* scroll = new QScrollArea();
+ scroll->setWidget( main );
+ scroll->setWidgetResizable( true );
+ base->layout()->setSizeConstraint(QLayout::SetMinAndMaxSize);
+ main = scroll;
+ }
setWidget( main );
}
{
public:
QtxPagePrefFrameItem( const QString&, QtxPreferenceItem* = 0,
- const QString& = QString(), const QString& = QString() );
+ const QString& = QString(), const QString& = QString(), const bool = false );
virtual ~QtxPagePrefFrameItem();
virtual void updateContents();
item = new QtxPagePrefTabsItem( title, parent, sect, param );
break;
case 2:
- item = new QtxPagePrefFrameItem( title, parent, sect, param );
+ item = new QtxPagePrefFrameItem( title, parent, sect, param, true );
break;
case 3:
item = new QtxPagePrefGroupItem( title, parent, sect, param );