Rename old tq methods that no longer need a unique name

pull/1/head
Timothy Pearson 13 years ago
parent e3656c08ed
commit 3eb39830ef

@ -25,8 +25,8 @@ KCScrollView::KCScrollView( TQWidget * parent, const char * name, WFlags f) : TQ
mainChild = 0;
}
TQSize KCScrollView::tqsizeHint() const {
TQSize vphint = mainChild->tqsizeHint();
TQSize KCScrollView::sizeHint() const {
TQSize vphint = mainChild->sizeHint();
vphint.setWidth(vphint.width()+2*frameWidth());
vphint.setHeight(vphint.height()+2*frameWidth());
return vphint;

@ -26,7 +26,7 @@ class KCScrollView : public TQScrollView {
public:
KCScrollView ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 );
virtual TQSize tqsizeHint() const;
virtual TQSize sizeHint() const;
virtual void addChild(TQWidget *child, int x=0, int y=0);
private:
TQWidget *mainChild;

@ -289,7 +289,7 @@ void MainWindow::slotItemSelected( TQIconViewItem *item ){
void MainWindow::timerResize() {
TQSize currentSize = size();
TQSize newSize = currentSize.expandedTo(tqsizeHint());
TQSize newSize = currentSize.expandedTo(sizeHint());
// Avoid resizing if possible.
if(newSize!=currentSize) {
resize(newSize);

@ -112,14 +112,14 @@ void ModulesView::createRow( const TQString &parentPath, TQBoxLayout *boxLayout
// Heaer Icon
TQLabel *icon = new TQLabel( this, "groupicon" );
icon->setPixmap( SmallIcon( group->icon() ) );
icon->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1,
icon->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1,
(TQSizePolicy::SizeType)5, 0, 0, icon->sizePolicy().hasHeightForWidth() ) );
rowLayout->addWidget( icon );
// Header Name
TQLabel *textLabel = new TQLabel( this, "groupcaption" );
textLabel->setText( group->caption() );
textLabel->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7,
textLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7,
(TQSizePolicy::SizeType)5, 0, 0, textLabel->sizePolicy().hasHeightForWidth()));
TQFont textLabel_font( textLabel->font() );
textLabel_font.setBold( true );
@ -160,7 +160,7 @@ void ModulesView::createRow( const TQString &parentPath, TQBoxLayout *boxLayout
}
// Force the height for those items that have two words.
iconView->setMinimumHeight( iconView->tqminimumSizeHint().height() );
iconView->setMinimumHeight( iconView->minimumSizeHint().height() );
}
void ModulesView::clearSelection() {

@ -34,7 +34,7 @@ public:
: KIconView( parent, name ){ };
// Figure out the hight/width to have only one row
TQSize tqminimumSizeHint() const {
TQSize minimumSizeHint() const {
int width = 0;
/*
for ( TQIconViewItem *item = firstItem(); item; item = item->nextItem() )

Loading…
Cancel
Save