Rename tqsetSizePolicy to fix bindings

pull/16/head
Timothy Pearson 13 years ago
parent b212a1de50
commit d5b3ae721d

@ -92,7 +92,7 @@ KVideoWidget::KVideoWidget( TQWidget *parent, const char *name, WFlags f )
void KVideoWidget::init(void) void KVideoWidget::init(void)
{ {
setMinimumSize(0, 0); setMinimumSize(0, 0);
tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) ); setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
setFocusPolicy( TQ_ClickFocus ); setFocusPolicy( TQ_ClickFocus );
fullscreenWidget = 0; fullscreenWidget = 0;

@ -83,7 +83,7 @@ KFileAudioPreview::KFileAudioPreview( TQWidget *parent, const char *name )
{ {
TQHBox *frame = new TQHBox( box ); TQHBox *frame = new TQHBox( box );
frame->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); frame->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
frame->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) ); frame->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
view->videoWidget()->reparent( frame, TQPoint(0,0) ); view->videoWidget()->reparent( frame, TQPoint(0,0) );
} }

@ -129,7 +129,7 @@ void LdapConfigWidget::initWidget()
if ( mFlags & W_PORT ) { if ( mFlags & W_PORT ) {
label = new TQLabel( i18n( "Port:" ), this ); label = new TQLabel( i18n( "Port:" ), this );
mPort = new TQSpinBox( 0, 65535, 1, this, "kcfg_ldapport" ); mPort = new TQSpinBox( 0, 65535, 1, this, "kcfg_ldapport" );
mPort->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Preferred ) ); mPort->setSizePolicy( TQSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Preferred ) );
mPort->setValue( 389 ); mPort->setValue( 389 );
mainLayout->addWidget( label, row, col ); mainLayout->addWidget( label, row, col );
@ -140,7 +140,7 @@ void LdapConfigWidget::initWidget()
if ( mFlags & W_VER ) { if ( mFlags & W_VER ) {
label = new TQLabel( i18n( "LDAP version:" ), this ); label = new TQLabel( i18n( "LDAP version:" ), this );
mVer = new TQSpinBox( 2, 3, 1, this, "kcfg_ldapver" ); mVer = new TQSpinBox( 2, 3, 1, this, "kcfg_ldapver" );
mVer->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Preferred ) ); mVer->setSizePolicy( TQSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Preferred ) );
mVer->setValue( 3 ); mVer->setValue( 3 );
mainLayout->addWidget( label, row, col ); mainLayout->addWidget( label, row, col );
mainLayout->addWidget( mVer, row, col+1 ); mainLayout->addWidget( mVer, row, col+1 );
@ -151,7 +151,7 @@ void LdapConfigWidget::initWidget()
if ( mFlags & W_SIZELIMIT ) { if ( mFlags & W_SIZELIMIT ) {
label = new TQLabel( i18n( "Size limit:" ), this ); label = new TQLabel( i18n( "Size limit:" ), this );
mSizeLimit = new TQSpinBox( 0, 9999999, 1, this, "kcfg_ldapsizelimit" ); mSizeLimit = new TQSpinBox( 0, 9999999, 1, this, "kcfg_ldapsizelimit" );
mSizeLimit->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Preferred ) ); mSizeLimit->setSizePolicy( TQSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Preferred ) );
mSizeLimit->setValue( 0 ); mSizeLimit->setValue( 0 );
mSizeLimit->setSpecialValueText( i18n("Default") ); mSizeLimit->setSpecialValueText( i18n("Default") );
mainLayout->addWidget( label, row, col ); mainLayout->addWidget( label, row, col );
@ -162,7 +162,7 @@ void LdapConfigWidget::initWidget()
if ( mFlags & W_TIMELIMIT ) { if ( mFlags & W_TIMELIMIT ) {
label = new TQLabel( i18n( "Time limit:" ), this ); label = new TQLabel( i18n( "Time limit:" ), this );
mTimeLimit = new TQSpinBox( 0, 9999999, 1, this, "kcfg_ldaptimelimit" ); mTimeLimit = new TQSpinBox( 0, 9999999, 1, this, "kcfg_ldaptimelimit" );
mTimeLimit->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Preferred ) ); mTimeLimit->setSizePolicy( TQSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Preferred ) );
mTimeLimit->setValue( 0 ); mTimeLimit->setValue( 0 );
mTimeLimit->setSuffix( i18n(" sec") ); mTimeLimit->setSuffix( i18n(" sec") );
mTimeLimit->setSpecialValueText( i18n("Default") ); mTimeLimit->setSpecialValueText( i18n("Default") );

@ -60,7 +60,7 @@ ResourceSqlConfig::ResourceSqlConfig( TQWidget* parent, const char* name )
label = new TQLabel( i18n( "Port:" ), this ); label = new TQLabel( i18n( "Port:" ), this );
TQVBox *box = new TQVBox(this); TQVBox *box = new TQVBox(this);
mPort = new TQSpinBox(0, 65535, 1, box ); mPort = new TQSpinBox(0, 65535, 1, box );
mPort->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred)); mPort->setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred));
mPort->setValue(389); mPort->setValue(389);
new TQWidget(box, "dummy"); new TQWidget(box, "dummy");

@ -697,7 +697,7 @@ KateIconBorder::KateIconBorder ( KateViewInternal* internalView, TQWidget *paren
, m_cachedLNWidth( 0 ) , m_cachedLNWidth( 0 )
, m_maxCharWidth( 0 ) , m_maxCharWidth( 0 )
{ {
tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum ) ); setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum ) );
setBackgroundMode( NoBackground ); setBackgroundMode( NoBackground );

@ -779,7 +779,7 @@ PermissionDialog::PermissionDialog( TQWidget* parent )
TQCString PermissionDialog::exec( const TQString & cert, const TQString & perm ) { TQCString PermissionDialog::exec( const TQString & cert, const TQString & perm ) {
TQGuardedPtr<TQDialog> dialog = new TQDialog( TQT_TQWIDGET(parent()), "PermissionDialog"); TQGuardedPtr<TQDialog> dialog = new TQDialog( TQT_TQWIDGET(parent()), "PermissionDialog");
dialog->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, dialog->sizePolicy().hasHeightForWidth() ) ); dialog->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, dialog->sizePolicy().hasHeightForWidth() ) );
dialog->setModal( true ); dialog->setModal( true );
dialog->setCaption( i18n("Security Alert") ); dialog->setCaption( i18n("Security Alert") );

@ -608,7 +608,7 @@ bool KHTMLPart::openURL( const KURL &url )
if (!d->m_statusBarUALabel) { if (!d->m_statusBarUALabel) {
d->m_statusBarUALabel = new KURLLabel(d->m_statusBarExtension->statusBar()); d->m_statusBarUALabel = new KURLLabel(d->m_statusBarExtension->statusBar());
d->m_statusBarUALabel->setFixedHeight(instance()->iconLoader()->currentSize(KIcon::Small)); d->m_statusBarUALabel->setFixedHeight(instance()->iconLoader()->currentSize(KIcon::Small));
d->m_statusBarUALabel->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed)); d->m_statusBarUALabel->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed));
d->m_statusBarUALabel->setUseCursor(false); d->m_statusBarUALabel->setUseCursor(false);
d->m_statusBarExtension->addStatusBarItem(d->m_statusBarUALabel, 0, false); d->m_statusBarExtension->addStatusBarItem(d->m_statusBarUALabel, 0, false);
d->m_statusBarUALabel->setPixmap(SmallIcon("agent", instance())); d->m_statusBarUALabel->setPixmap(SmallIcon("agent", instance()));
@ -1075,7 +1075,7 @@ KJSErrorDlg *KHTMLPart::jsErrorExtension() {
if (!d->m_statusBarJSErrorLabel) { if (!d->m_statusBarJSErrorLabel) {
d->m_statusBarJSErrorLabel = new KURLLabel(d->m_statusBarExtension->statusBar()); d->m_statusBarJSErrorLabel = new KURLLabel(d->m_statusBarExtension->statusBar());
d->m_statusBarJSErrorLabel->setFixedHeight(instance()->iconLoader()->currentSize(KIcon::Small)); d->m_statusBarJSErrorLabel->setFixedHeight(instance()->iconLoader()->currentSize(KIcon::Small));
d->m_statusBarJSErrorLabel->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed)); d->m_statusBarJSErrorLabel->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed));
d->m_statusBarJSErrorLabel->setUseCursor(false); d->m_statusBarJSErrorLabel->setUseCursor(false);
d->m_statusBarExtension->addStatusBarItem(d->m_statusBarJSErrorLabel, 0, false); d->m_statusBarExtension->addStatusBarItem(d->m_statusBarJSErrorLabel, 0, false);
TQToolTip::add(d->m_statusBarJSErrorLabel, i18n("This web page contains coding errors.")); TQToolTip::add(d->m_statusBarJSErrorLabel, i18n("This web page contains coding errors."));
@ -1525,7 +1525,7 @@ void KHTMLPart::setPageSecurity( PageSecurity sec )
if ( sec != NotCrypted && !d->m_statusBarIconLabel && !parentPart() ) { if ( sec != NotCrypted && !d->m_statusBarIconLabel && !parentPart() ) {
d->m_statusBarIconLabel = new KURLLabel( d->m_statusBarExtension->statusBar() ); d->m_statusBarIconLabel = new KURLLabel( d->m_statusBarExtension->statusBar() );
d->m_statusBarIconLabel->setFixedHeight( instance()->iconLoader()->currentSize(KIcon::Small) ); d->m_statusBarIconLabel->setFixedHeight( instance()->iconLoader()->currentSize(KIcon::Small) );
d->m_statusBarIconLabel->tqsetSizePolicy(TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed )); d->m_statusBarIconLabel->setSizePolicy(TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ));
d->m_statusBarIconLabel->setUseCursor( false ); d->m_statusBarIconLabel->setUseCursor( false );
d->m_statusBarExtension->addStatusBarItem( d->m_statusBarIconLabel, 0, false ); d->m_statusBarExtension->addStatusBarItem( d->m_statusBarIconLabel, 0, false );
connect( d->m_statusBarIconLabel, TQT_SIGNAL( leftClickedURL() ), TQT_SLOT( slotSecurity() ) ); connect( d->m_statusBarIconLabel, TQT_SIGNAL( leftClickedURL() ), TQT_SLOT( slotSecurity() ) );
@ -7249,7 +7249,7 @@ void KHTMLPart::walletOpened(KWallet::Wallet *wallet) {
if (!d->m_statusBarWalletLabel) { if (!d->m_statusBarWalletLabel) {
d->m_statusBarWalletLabel = new KURLLabel(d->m_statusBarExtension->statusBar()); d->m_statusBarWalletLabel = new KURLLabel(d->m_statusBarExtension->statusBar());
d->m_statusBarWalletLabel->setFixedHeight(instance()->iconLoader()->currentSize(KIcon::Small)); d->m_statusBarWalletLabel->setFixedHeight(instance()->iconLoader()->currentSize(KIcon::Small));
d->m_statusBarWalletLabel->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed)); d->m_statusBarWalletLabel->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed));
d->m_statusBarWalletLabel->setUseCursor(false); d->m_statusBarWalletLabel->setUseCursor(false);
d->m_statusBarExtension->addStatusBarItem(d->m_statusBarWalletLabel, 0, false); d->m_statusBarExtension->addStatusBarItem(d->m_statusBarWalletLabel, 0, false);
d->m_statusBarWalletLabel->setPixmap(SmallIcon("wallet_open", instance())); d->m_statusBarWalletLabel->setPixmap(SmallIcon("wallet_open", instance()));
@ -7386,7 +7386,7 @@ void KHTMLPart::setSuppressedPopupIndicator( bool enable, KHTMLPart *originPart
if ( enable && !d->m_statusBarPopupLabel ) { if ( enable && !d->m_statusBarPopupLabel ) {
d->m_statusBarPopupLabel = new KURLLabel( d->m_statusBarExtension->statusBar() ); d->m_statusBarPopupLabel = new KURLLabel( d->m_statusBarExtension->statusBar() );
d->m_statusBarPopupLabel->setFixedHeight( instance()->iconLoader()->currentSize( KIcon::Small) ); d->m_statusBarPopupLabel->setFixedHeight( instance()->iconLoader()->currentSize( KIcon::Small) );
d->m_statusBarPopupLabel->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed )); d->m_statusBarPopupLabel->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ));
d->m_statusBarPopupLabel->setUseCursor( false ); d->m_statusBarPopupLabel->setUseCursor( false );
d->m_statusBarExtension->addStatusBarItem( d->m_statusBarPopupLabel, 0, false ); d->m_statusBarExtension->addStatusBarItem( d->m_statusBarPopupLabel, 0, false );
d->m_statusBarPopupLabel->setPixmap( SmallIcon( "window_suppressed", instance() ) ); d->m_statusBarPopupLabel->setPixmap( SmallIcon( "window_suppressed", instance() ) );

@ -85,7 +85,7 @@ KACLEditWidget::KACLEditWidget( TQWidget *parent, const char *name )
m_DelBtn = new TQPushButton( i18n( "Delete Entry" ), vbox, "delete_entry_button" ); m_DelBtn = new TQPushButton( i18n( "Delete Entry" ), vbox, "delete_entry_button" );
connect( m_DelBtn, TQT_SIGNAL( clicked() ), m_listView, TQT_SLOT( slotRemoveEntry() ) ); connect( m_DelBtn, TQT_SIGNAL( clicked() ), m_listView, TQT_SLOT( slotRemoveEntry() ) );
TQWidget *spacer = new TQWidget( vbox ); TQWidget *spacer = new TQWidget( vbox );
spacer->tqsetSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Expanding ); spacer->setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Expanding );
slotUpdateButtons(); slotUpdateButtons();
} }

@ -44,7 +44,7 @@ KImageFilePreview::KImageFilePreview( TQWidget *parent )
imageLabel = new TQLabel( this ); imageLabel = new TQLabel( this );
imageLabel->setFrameStyle( TQFrame::NoFrame ); imageLabel->setFrameStyle( TQFrame::NoFrame );
imageLabel->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter ); imageLabel->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter );
imageLabel->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding) ); imageLabel->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding) );
vb->addWidget( imageLabel ); vb->addWidget( imageLabel );
TQHBoxLayout *hb = new TQHBoxLayout( 0 ); TQHBoxLayout *hb = new TQHBoxLayout( 0 );

@ -201,7 +201,7 @@ void KFileMetaPropsPlugin::createLayout()
// the add key (disabled until fully implemented) // the add key (disabled until fully implemented)
/* d->m_add = new TQPushButton(i18n("&Add"), topframe); /* d->m_add = new TQPushButton(i18n("&Add"), topframe);
d->m_add->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, d->m_add->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed,
TQSizePolicy::Fixed)); TQSizePolicy::Fixed));
connect(d->m_add, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAdd())); connect(d->m_add, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAdd()));
tmp->addWidget(d->m_add); tmp->addWidget(d->m_add);

@ -341,7 +341,7 @@ KURLBar::KURLBar( bool useGlobalItems, TQWidget *parent, const char *name, WFlag
d = new KURLBarPrivate(); d = new KURLBarPrivate();
setListBox( 0L ); setListBox( 0L );
tqsetSizePolicy( TQSizePolicy( isVertical() ? setSizePolicy( TQSizePolicy( isVertical() ?
TQSizePolicy::Maximum : TQSizePolicy::Maximum :
TQSizePolicy::Preferred, TQSizePolicy::Preferred,
isVertical() ? isVertical() ?
@ -378,7 +378,7 @@ KURLBarItem * KURLBar::insertDynamicItem(const KURL& url, const TQString& descri
void KURLBar::setOrientation( Qt::Orientation orient ) void KURLBar::setOrientation( Qt::Orientation orient )
{ {
m_listBox->setOrientation( orient ); m_listBox->setOrientation( orient );
tqsetSizePolicy( TQSizePolicy( isVertical() ? setSizePolicy( TQSizePolicy( isVertical() ?
TQSizePolicy::Maximum : TQSizePolicy::Maximum :
TQSizePolicy::Preferred, TQSizePolicy::Preferred,
isVertical() ? isVertical() ?

@ -70,7 +70,7 @@ void KURLComboBox::init( Mode mode )
defaultList.setAutoDelete( true ); defaultList.setAutoDelete( true );
setInsertionPolicy( NoInsertion ); setInsertionPolicy( NoInsertion );
setTrapReturnKey( true ); setTrapReturnKey( true );
tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed )); setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ));
opendirPix = SmallIcon(TQString::tqfromLatin1("folder_open")); opendirPix = SmallIcon(TQString::tqfromLatin1("folder_open"));

@ -402,7 +402,7 @@ KPushButton * KURLRequester::button() const
KEditListBox::CustomEditor KURLRequester::customEditor() KEditListBox::CustomEditor KURLRequester::customEditor()
{ {
tqsetSizePolicy(TQSizePolicy( TQSizePolicy::Preferred, setSizePolicy(TQSizePolicy( TQSizePolicy::Preferred,
TQSizePolicy::Fixed)); TQSizePolicy::Fixed));
KLineEdit *edit = d->edit; KLineEdit *edit = d->edit;

@ -130,7 +130,7 @@ void DefaultProgress::init()
hBox->addWidget(resumeLabel); hBox->addWidget(resumeLabel);
progressLabel = new TQLabel( this ); progressLabel = new TQLabel( this );
/* progressLabel->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding, /* progressLabel->setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding,
TQSizePolicy::Preferred ) );*/ TQSizePolicy::Preferred ) );*/
progressLabel->setAlignment( TQLabel::AlignRight ); progressLabel->setAlignment( TQLabel::AlignRight );
hBox->addWidget( progressLabel ); hBox->addWidget( progressLabel );

@ -90,7 +90,7 @@ DockContainer::DockContainer(TQWidget *parent, TQWidget *win, int position, int
m_ws=new TQWidgetStack(this); m_ws=new TQWidgetStack(this);
m_ws->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Expanding)); m_ws->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Expanding));
if ( (position==KDockWidget::DockLeft) || (position==KDockWidget::DockTop)) if ( (position==KDockWidget::DockLeft) || (position==KDockWidget::DockTop))
{ {

@ -104,7 +104,7 @@ KMdiDockContainer::KMdiDockContainer( TQWidget *parent, TQWidget *win, int posit
m_ws = new TQWidgetStack( this ); m_ws = new TQWidgetStack( this );
m_ws->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) ); m_ws->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
//layout the tabbar //layout the tabbar
if ( position == KDockWidget::DockLeft || position == KDockWidget::DockTop ) if ( position == KDockWidget::DockLeft || position == KDockWidget::DockTop )

@ -838,13 +838,13 @@ KMultiTabBar::KMultiTabBar(KMultiTabBarMode bm, TQWidget *parent,const char *nam
if (bm==Vertical) if (bm==Vertical)
{ {
m_l=new TQVBoxLayout(this); m_l=new TQVBoxLayout(this);
tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding, true); setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding, true);
// setFixedWidth(24); // setFixedWidth(24);
} }
else else
{ {
m_l=new TQHBoxLayout(this); m_l=new TQHBoxLayout(this);
tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed, true); setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed, true);
// setFixedHeight(24); // setFixedHeight(24);
} }
m_l->setMargin(0); m_l->setMargin(0);

@ -192,7 +192,7 @@ void KPluginSelectionWidget::init( const TQValueList<KPluginInfo*> & plugininfos
TQT_SLOT( executed( TQListViewItem * ) ) ); TQT_SLOT( executed( TQListViewItem * ) ) );
connect( listview, TQT_SIGNAL( selectionChanged( TQListViewItem * ) ), this, connect( listview, TQT_SIGNAL( selectionChanged( TQListViewItem * ) ), this,
TQT_SLOT( executed( TQListViewItem * ) ) ); TQT_SLOT( executed( TQListViewItem * ) ) );
listview->tqsetSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Preferred ); listview->setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Preferred );
listview->setAcceptDrops( false ); listview->setAcceptDrops( false );
listview->setFullWidth( true ); listview->setFullWidth( true );
listview->setSelectionModeExt( KListView::Single ); listview->setSelectionModeExt( KListView::Single );

@ -45,7 +45,7 @@ ImagePosition::ImagePosition(TQWidget *parent, const char *name)
{ {
position_ = Center; position_ = Center;
setMinimumSize(sizeHint()); setMinimumSize(sizeHint());
tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding)); setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding));
pix_.load(locate("data", "tdeprint/preview-mini.png")); pix_.load(locate("data", "tdeprint/preview-mini.png"));
} }

@ -280,7 +280,7 @@ void KMJobViewer::initActions()
connect(m_userfield, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotUserChanged())); connect(m_userfield, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotUserChanged()));
connect(uact, TQT_SIGNAL(toggled(bool)), m_userfield, TQT_SLOT(setEnabled(bool))); connect(uact, TQT_SIGNAL(toggled(bool)), m_userfield, TQT_SLOT(setEnabled(bool)));
m_userfield->setEnabled(false); m_userfield->setEnabled(false);
m_userfield->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed)); m_userfield->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed));
KWidgetAction *ufact = new KWidgetAction(m_userfield, i18n("User Name"), 0, 0, 0, actionCollection(), "view_username"); KWidgetAction *ufact = new KWidgetAction(m_userfield, i18n("User Name"), 0, 0, 0, actionCollection(), "view_username");
if (!m_pop) if (!m_pop)

@ -47,7 +47,7 @@ KMPrinterView::KMPrinterView(TQWidget *parent, const char *name)
connect(m_listview,TQT_SIGNAL(printerSelected(const TQString&)),TQT_SLOT(slotPrinterSelected(const TQString&))); connect(m_listview,TQT_SIGNAL(printerSelected(const TQString&)),TQT_SLOT(slotPrinterSelected(const TQString&)));
setViewType(m_type); setViewType(m_type);
tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) ); setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
} }
KMPrinterView::~KMPrinterView() KMPrinterView::~KMPrinterView()

@ -32,7 +32,7 @@ SidePixmap::SidePixmap(TQWidget *parent, const char *name)
m_tileup.load(locate("data", "tdeprint/tileup.png")); m_tileup.load(locate("data", "tdeprint/tileup.png"));
m_tiledown.load(locate("data", "tdeprint/tiledown.png")); m_tiledown.load(locate("data", "tdeprint/tiledown.png"));
tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Minimum)); setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Minimum));
} }
bool SidePixmap::isValid() bool SidePixmap::isValid()

@ -259,7 +259,7 @@ KBugReport::KBugReport( TQWidget * parentw, bool modal, const KAboutData *aboutD
updateURL(); updateURL();
d->submitBugButton->setText( i18n("&Launch Bug Report Wizard") ); d->submitBugButton->setText( i18n("&Launch Bug Report Wizard") );
d->submitBugButton->tqsetSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed); d->submitBugButton->setSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed);
lay->addWidget( d->submitBugButton ); lay->addWidget( d->submitBugButton );
lay->addSpacing(10); lay->addSpacing(10);

@ -79,7 +79,7 @@ void KEditListBox::init( bool checkAtEntering, int buttons,
d->m_checkAtEntering = checkAtEntering; d->m_checkAtEntering = checkAtEntering;
servNewButton = servRemoveButton = servUpButton = servDownButton = 0L; servNewButton = servRemoveButton = servUpButton = servDownButton = 0L;
tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding,
TQSizePolicy::MinimumExpanding)); TQSizePolicy::MinimumExpanding));
TQGridLayout * grid = new TQGridLayout(this, 7, 2, TQGridLayout * grid = new TQGridLayout(this, 7, 2,

@ -98,7 +98,7 @@ void KPushButton::init( const KGuiItem &item )
setIconSet( d->item.iconSet() ); setIconSet( d->item.iconSet() );
tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );
TQToolTip::add( this, item.toolTip() ); TQToolTip::add( this, item.toolTip() );

@ -22,14 +22,14 @@
KSqueezedTextLabel::KSqueezedTextLabel( const TQString &text , TQWidget *parent, const char *name ) KSqueezedTextLabel::KSqueezedTextLabel( const TQString &text , TQWidget *parent, const char *name )
: TQLabel ( parent, name ) { : TQLabel ( parent, name ) {
tqsetSizePolicy(TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed )); setSizePolicy(TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ));
fullText = text; fullText = text;
squeezeTextToLabel(); squeezeTextToLabel();
} }
KSqueezedTextLabel::KSqueezedTextLabel( TQWidget *parent, const char *name ) KSqueezedTextLabel::KSqueezedTextLabel( TQWidget *parent, const char *name )
: TQLabel ( parent, name ) { : TQLabel ( parent, name ) {
tqsetSizePolicy(TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed )); setSizePolicy(TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ));
} }
void KSqueezedTextLabel::resizeEvent( TQResizeEvent * ) { void KSqueezedTextLabel::resizeEvent( TQResizeEvent * ) {

@ -436,9 +436,9 @@ void KURLLabel::setFocusPolicy( TQ_FocusPolicy policy )
} }
} }
void KURLLabel::tqsetSizePolicy ( TQSizePolicy policy ) void KURLLabel::setSizePolicy ( TQSizePolicy policy )
{ {
TQLabel::tqsetSizePolicy(policy); TQLabel::setSizePolicy(policy);
if (!d->MarginAltered && policy.horData()==TQSizePolicy::Fixed && policy.verData()==TQSizePolicy::Fixed) { if (!d->MarginAltered && policy.horData()==TQSizePolicy::Fixed && policy.verData()==TQSizePolicy::Fixed) {
TQLabel::setMargin(0); //better default : better look when fixed size TQLabel::setMargin(0); //better default : better look when fixed size
} }

@ -169,7 +169,7 @@ public:
/** /**
* Reimplemented for internal reasons, the API is not affected. * Reimplemented for internal reasons, the API is not affected.
*/ */
virtual void tqsetSizePolicy ( TQSizePolicy ); virtual void setSizePolicy ( TQSizePolicy );
public slots: public slots:
/** /**

@ -36,7 +36,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
TQHBox* hbox = new TQHBox(this); TQHBox* hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint()); hbox->setSpacing (KDialog::spacingHint());
TQLabel* lbl = new TQLabel("&QCombobox:", hbox); TQLabel* lbl = new TQLabel("&QCombobox:", hbox);
lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred); lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_qc = new TQComboBox(hbox, "QtReadOnlyCombo" ); m_qc = new TQComboBox(hbox, "QtReadOnlyCombo" );
lbl->setBuddy (m_qc); lbl->setBuddy (m_qc);
@ -48,7 +48,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
hbox = new TQHBox(this); hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint()); hbox->setSpacing (KDialog::spacingHint());
lbl = new TQLabel("&Read-Only Combo:", hbox); lbl = new TQLabel("&Read-Only Combo:", hbox);
lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred); lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_ro = new KComboBox(hbox, "ReadOnlyCombo" ); m_ro = new KComboBox(hbox, "ReadOnlyCombo" );
lbl->setBuddy (m_ro); lbl->setBuddy (m_ro);
@ -61,7 +61,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
hbox = new TQHBox(this); hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint()); hbox->setSpacing (KDialog::spacingHint());
lbl = new TQLabel("&Editable Combo:", hbox); lbl = new TQLabel("&Editable Combo:", hbox);
lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred); lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_rw = new KComboBox( true, hbox, "ReadWriteCombo" ); m_rw = new KComboBox( true, hbox, "ReadWriteCombo" );
lbl->setBuddy (m_rw); lbl->setBuddy (m_rw);
@ -78,7 +78,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
hbox = new TQHBox(this); hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint()); hbox->setSpacing (KDialog::spacingHint());
lbl = new TQLabel("&History Combo:", hbox); lbl = new TQLabel("&History Combo:", hbox);
lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred); lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_hc = new KHistoryCombo( true, hbox, "HistoryCombo" ); m_hc = new KHistoryCombo( true, hbox, "HistoryCombo" );
lbl->setBuddy (m_hc); lbl->setBuddy (m_hc);
@ -94,7 +94,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
hbox = new TQHBox(this); hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint()); hbox->setSpacing (KDialog::spacingHint());
lbl = new TQLabel( "&Konq's Combo:", hbox); lbl = new TQLabel( "&Konq's Combo:", hbox);
lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred); lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_konqc = new KComboBox( true, hbox, "KonqyCombo" ); m_konqc = new KComboBox( true, hbox, "KonqyCombo" );
lbl->setBuddy (m_konqc); lbl->setBuddy (m_konqc);

Loading…
Cancel
Save