diff options
Diffstat (limited to 'kspread/kspread_view.cc')
-rw-r--r-- | kspread/kspread_view.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kspread/kspread_view.cc b/kspread/kspread_view.cc index b667214f..3244a11d 100644 --- a/kspread/kspread_view.cc +++ b/kspread/kspread_view.cc @@ -468,7 +468,7 @@ void View::Private::initActions() // -- cell formatting actions -- actions->cellLayout = new KAction( i18n("Cell Format..."), "cell_layout", - TQt::CTRL+ TQt::ALT+ TQt::Key_F, TQT_TQOBJECT(view), TQT_SLOT( tqlayoutDlg() ), ac, "cellLayout" ); + TQt::CTRL+ TQt::ALT+ TQt::Key_F, TQT_TQOBJECT(view), TQT_SLOT( layoutDlg() ), ac, "cellLayout" ); actions->cellLayout->setToolTip( i18n("Set the cell formatting.") ); actions->actionExtraProperties = new KAction( i18n( "&Properties" ), "penbrush", 0, @@ -1975,7 +1975,7 @@ void View::initView() TQWidget::setFocusPolicy( TQ_StrongFocus ); setFocusProxy( d->canvas ); - connect( this, TQT_SIGNAL( tqinvalidated() ), d->canvas, TQT_SLOT( update() ) ); + connect( this, TQT_SIGNAL( invalidated() ), d->canvas, TQT_SLOT( update() ) ); TQWidget* bottomPart = new TQWidget( this ); d->tabScrollBarLayout = new TQHBoxLayout( bottomPart ); @@ -3580,7 +3580,7 @@ void View::borderRight() if ( d->activeSheet != 0L ) { doc()->emitBeginOperation( false ); - if ( d->activeSheet->tqlayoutDirection()==Sheet::RightToLeft ) + if ( d->activeSheet->layoutDirection()==Sheet::RightToLeft ) d->activeSheet->borderLeft( d->selection, d->actions->borderColor->color() ); else d->activeSheet->borderRight( d->selection, d->actions->borderColor->color() ); @@ -3595,7 +3595,7 @@ void View::setSelectionRightBorderColor( const TQColor & color ) if ( d->activeSheet != 0L ) { doc()->emitBeginOperation( false ); - if ( d->activeSheet->tqlayoutDirection()==Sheet::RightToLeft ) + if ( d->activeSheet->layoutDirection()==Sheet::RightToLeft ) d->activeSheet->borderLeft( selectionInfo(), color ); else d->activeSheet->borderRight( selectionInfo(), color ); @@ -3610,7 +3610,7 @@ void View::borderLeft() if ( d->activeSheet != 0L ) { doc()->emitBeginOperation( false ); - if ( d->activeSheet->tqlayoutDirection()==Sheet::RightToLeft ) + if ( d->activeSheet->layoutDirection()==Sheet::RightToLeft ) d->activeSheet->borderRight( d->selection, d->actions->borderColor->color() ); else d->activeSheet->borderLeft( d->selection, d->actions->borderColor->color() ); @@ -3625,7 +3625,7 @@ void View::setSelectionLeftBorderColor( const TQColor & color ) if ( d->activeSheet != 0L ) { doc()->emitBeginOperation( false ); - if ( d->activeSheet->tqlayoutDirection()==Sheet::RightToLeft ) + if ( d->activeSheet->layoutDirection()==Sheet::RightToLeft ) d->activeSheet->borderRight( selectionInfo(), color ); else d->activeSheet->borderLeft( selectionInfo(), color ); @@ -3825,7 +3825,7 @@ void View::setActiveSheet( Sheet * _t, bool updateSheet ) return; } - if ( oldSheet && oldSheet->tqlayoutDirection()==Sheet::RightToLeft != d->activeSheet->tqlayoutDirection()==Sheet::RightToLeft ) + if ( oldSheet && oldSheet->layoutDirection()==Sheet::RightToLeft != d->activeSheet->layoutDirection()==Sheet::RightToLeft ) refreshView(); doc()->setDisplaySheet( d->activeSheet ); @@ -3945,7 +3945,7 @@ void View::sheetProperties() bool directionChanged = false; SheetPropertiesDialog* dlg = new SheetPropertiesDialog( this ); - dlg->setLayoutDirection( d->activeSheet->tqlayoutDirection() ); + dlg->setLayoutDirection( d->activeSheet->layoutDirection() ); dlg->setAutoCalc( d->activeSheet->getAutoCalc() ); dlg->setShowGrid( d->activeSheet->getShowGrid() ); dlg->setShowPageBorders( d->activeSheet->isShowPageBorders() ); @@ -3961,10 +3961,10 @@ void View::sheetProperties() { SheetPropertiesCommand* command = new SheetPropertiesCommand( doc(), d->activeSheet ); - if ( d->activeSheet->tqlayoutDirection() != dlg->tqlayoutDirection() ) + if ( d->activeSheet->layoutDirection() != dlg->layoutDirection() ) directionChanged = true; - command->setLayoutDirection( dlg->tqlayoutDirection() ); + command->setLayoutDirection( dlg->layoutDirection() ); command->setAutoCalc( dlg->autoCalc() ); command->setShowGrid( dlg->showGrid() ); command->setShowPageBorders( dlg->showPageBorders() ); @@ -5568,7 +5568,7 @@ void View::refreshView() d->hBorderWidget->setMinimumHeight( doc()->zoomItY( KoGlobal::defaultFont().pointSizeFloat() + 5 ) ); d->vBorderWidget->setMinimumWidth( doc()->zoomItX( YBORDER_WIDTH ) ); - Sheet::LayoutDirection sheetDir = sheet->tqlayoutDirection(); + Sheet::LayoutDirection sheetDir = sheet->layoutDirection(); bool interfaceIsRTL = TQApplication::reverseLayout(); kdDebug()<<" sheetDir == Sheet::LeftToRight :"<<( sheetDir == Sheet::LeftToRight )<<endl; @@ -5886,7 +5886,7 @@ void View::slotListChoosePopupMenu( ) h = cell->extraHeight(); ty += h; - if ( d->activeSheet->tqlayoutDirection()==Sheet::RightToLeft ) + if ( d->activeSheet->layoutDirection()==Sheet::RightToLeft ) { tx = canvasWidget()->width() - tx; } @@ -5894,7 +5894,7 @@ void View::slotListChoosePopupMenu( ) TQPoint p( (int)tx, (int)ty ); TQPoint p2 = d->canvas->mapToGlobal( p ); - if ( d->activeSheet->tqlayoutDirection()==Sheet::RightToLeft ) + if ( d->activeSheet->layoutDirection()==Sheet::RightToLeft ) { p2.setX( p2.x() - d->popupListChoose->tqsizeHint().width() + 1 ); } @@ -6353,7 +6353,7 @@ void View::equalizeColumn() } -void View::tqlayoutDlg() +void View::layoutDlg() { if (!activeSheet()) return; |