Summary: | "cut" often disabled when text selected | ||
---|---|---|---|
Product: | [Applications] calligrastage | Reporter: | klee |
Component: | general | Assignee: | Laurent Montel <montel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.2.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
klee
2003-04-09 02:39:06 UTC
Confirmed. Strange that the "Cut" action is properly enabled when one selects the text with keyboard... Subject: koffice/kpresenter CVS commit by lukas: fix bug 57024: "cut" often disabled when text selected CCMAIL: 57024-done@bugs.kde.org M +7 -5 kpresenter_view.cc 1.963 --- koffice/kpresenter/kpresenter_view.cc #1.962:1.963 @@ -3306,5 +3306,5 @@ void KPresenterView::objectSelectedChang KPObject *obj=m_canvas->getSelectedObj(); //disable this action when we select a header/footer - if(obj==m_pKPresenterDoc->header() ||obj==m_pKPresenterDoc->footer()) + if(obj==m_pKPresenterDoc->header() || obj==m_pKPresenterDoc->footer()) headerfooterselected=true; else @@ -6711,10 +6711,11 @@ void KPresenterView::slotObjectEditChang { double leftMargin =edit->currentParagLayout().margins[QStyleSheetItem::MarginLeft]; - actionTextDepthMinus->setEnabled( val && leftMargin>0); + actionTextDepthMinus->setEnabled(val && leftMargin>0); hasSelection = edit->textObject()->hasSelection(); + actionEditCut->setEnabled(hasSelection); } actionCreateStyleFromSelection->setEnabled((edit!=0)&& hasSelection); - actionChangeCase->setEnabled( (val && rw && hasSelection ) || (rw && !edit && isText)); + actionChangeCase->setEnabled( (val && rw && hasSelection ) || (rw && !edit && isText) ); if(!edit) @@ -6726,5 +6727,5 @@ void KPresenterView::slotObjectEditChang KPObject *obj=m_canvas->getSelectedObj(); //disable this action when we select a header/footer - if(obj==m_pKPresenterDoc->header() ||obj==m_pKPresenterDoc->footer()) + if(obj==m_pKPresenterDoc->header() || obj==m_pKPresenterDoc->footer()) headerfooterselected=true; else |