diff options
Diffstat (limited to 'lib/koproperty')
-rw-r--r-- | lib/koproperty/editor.cpp | 22 | ||||
-rw-r--r-- | lib/koproperty/editor.h | 2 | ||||
-rw-r--r-- | lib/koproperty/editoritem.cpp | 26 | ||||
-rw-r--r-- | lib/koproperty/editoritem.h | 12 | ||||
-rw-r--r-- | lib/koproperty/editors/fontedit.cpp | 8 | ||||
-rw-r--r-- | lib/koproperty/editors/pixmapedit.cpp | 2 | ||||
-rw-r--r-- | lib/koproperty/test/test.cpp | 2 | ||||
-rw-r--r-- | lib/koproperty/test/test.h | 2 |
8 files changed, 38 insertions, 38 deletions
diff --git a/lib/koproperty/editor.cpp b/lib/koproperty/editor.cpp index 39c965a5..13638119 100644 --- a/lib/koproperty/editor.cpp +++ b/lib/koproperty/editor.cpp @@ -120,7 +120,7 @@ class EditorPrivate using namespace KoProperty; Editor::Editor(TQWidget *parent, bool autoSync, const char *name) - : KListView(parent, name) + : TDEListView(parent, name) { d = new EditorPrivate(this); d->itemDict.setAutoDelete(false); @@ -189,7 +189,7 @@ Editor::fill() d->itemToSelectLater = 0; tqApp->eventLoop()->processEvents(TQEventLoop::AllEvents); hideEditor(); - KListView::clear(); + TDEListView::clear(); d->itemDict.clear(); clearWidgetCache(); if(!d->set) { @@ -416,7 +416,7 @@ Editor::clear(bool editorOnly) if(d->set) d->set->disconnect(this); clearWidgetCache(); - KListView::clear(); + TDEListView::clear(); d->itemDict.clear(); d->topItem = 0; } @@ -872,7 +872,7 @@ TQSize Editor::sizeHint() const { return TQSize( TQFontMetrics(font()).width(columnText(0)+columnText(1)+" "), - KListView::sizeHint().height()); + TDEListView::sizeHint().height()); } void @@ -897,15 +897,15 @@ Editor::setFocus() d->currentWidget->setFocus(); } else { -// kopropertydbg << "KListView::setFocus()" << endl; - KListView::setFocus(); +// kopropertydbg << "TDEListView::setFocus()" << endl; + TDEListView::setFocus(); } } void Editor::resizeEvent(TQResizeEvent *ev) { - KListView::resizeEvent(ev); + TDEListView::resizeEvent(ev); if(d->undoButton->isVisible()) showUndoButton(true); update(); @@ -919,7 +919,7 @@ Editor::eventFilter( TQObject * watched, TQEvent * e ) if (handleKeyPress(TQT_TQKEYEVENT(e))) return true; } - return KListView::eventFilter(watched, e); + return TDEListView::eventFilter(watched, e); } bool @@ -998,7 +998,7 @@ Editor::event( TQEvent * e ) if (e->type()==TQEvent::ParentFontChange) { updateFont(); } - return KListView::event(e); + return TDEListView::event(e); } void @@ -1009,7 +1009,7 @@ Editor::contentsMousePressEvent( TQMouseEvent * e ) setOpen( item, !isOpen(item) ); return; } - KListView::contentsMousePressEvent(e); + TDEListView::contentsMousePressEvent(e); } void @@ -1017,7 +1017,7 @@ Editor::setSorting( int column, bool ascending ) { if (d->set && d->set->groupNames().count()>1) //do not sort when groups are present (maybe reenable this later?) return; - KListView::setSorting( column, ascending ); + TDEListView::setSorting( column, ascending ); updateEditorGeometry(); updateGroupLabelsPosition(); repaintContents(); diff --git a/lib/koproperty/editor.h b/lib/koproperty/editor.h index 7f8d41fa..0fbcf45f 100644 --- a/lib/koproperty/editor.h +++ b/lib/koproperty/editor.h @@ -60,7 +60,7 @@ class EditorItem; \author Alexander Dymo <[email protected]> \author Jaroslaw Staniek <[email protected]> */ -class KOPROPERTY_EXPORT Editor : public KListView +class KOPROPERTY_EXPORT Editor : public TDEListView { Q_OBJECT diff --git a/lib/koproperty/editoritem.cpp b/lib/koproperty/editoritem.cpp index b378f93a..a22bab55 100644 --- a/lib/koproperty/editoritem.cpp +++ b/lib/koproperty/editoritem.cpp @@ -89,7 +89,7 @@ static void paintListViewExpander(TQPainter* p, TQWidget* w, int height, const T } //! @internal -//! Based on KPopupTitle, see kpopupmenu.cpp +//! Based on TDEPopupTitle, see kpopupmenu.cpp class GroupWidgetBase : public TQWidget { public: @@ -255,7 +255,7 @@ bool GroupContainer::event( TQEvent * e ) { ////////////////////////////////////////////////////// EditorItem::EditorItem(Editor *editor, EditorItem *parent, Property *property, TQListViewItem *after) - : KListViewItem(parent, after, + : TDEListViewItem(parent, after, property->captionForDisplaying().isEmpty() ? property->name() : property->captionForDisplaying()) { d = new EditorItemPrivate(); @@ -280,8 +280,8 @@ EditorItem::EditorItem(Editor *editor, EditorItem *parent, Property *property, T */ } -EditorItem::EditorItem(KListView *parent) - : KListViewItem(parent) +EditorItem::EditorItem(TDEListView *parent) + : TDEListViewItem(parent) { d = new EditorItemPrivate(); d->property = 0; @@ -290,7 +290,7 @@ EditorItem::EditorItem(KListView *parent) } EditorItem::EditorItem(EditorItem *parent, const TQString &text) - : KListViewItem(parent, text) + : TDEListViewItem(parent, text) { d = new EditorItemPrivate(); d->property = 0; @@ -299,7 +299,7 @@ EditorItem::EditorItem(EditorItem *parent, const TQString &text) } EditorItem::EditorItem(EditorItem *parent, EditorItem *after, const TQString &text) - : KListViewItem(parent, after, text) + : TDEListViewItem(parent, after, text) { d = new EditorItemPrivate(); d->property = 0; @@ -333,7 +333,7 @@ EditorItem::paintCell(TQPainter *p, const TQColorGroup & cg, int column, int wid p->setFont(font); p->setBrush(cg.highlight()); p->setPen(cg.highlightedText()); - KListViewItem::paintCell(p, cg, column, width, align); + TDEListViewItem::paintCell(p, cg, column, width, align); p->fillRect(parent() ? 0 : 50, 0, width, height()-1, TQBrush(isSelected() ? cg.highlight() : backgroundColor())); p->setPen(isSelected() ? cg.highlightedText() : cg.text()); @@ -384,7 +384,7 @@ void EditorItem::paintBranches(TQPainter *p, const TQColorGroup &cg, int w, int y, int h) { p->eraseRect(0,0,w,h); - KListViewItem *item = static_cast<KListViewItem*>(firstChild()); + TDEListViewItem *item = static_cast<TDEListViewItem*>(firstChild()); if(!item) return; @@ -475,7 +475,7 @@ EditorItem::paintBranches(TQPainter *p, const TQColorGroup &cg, int w, int y, in } p->translate(0, item->totalHeight()); - item = (KListViewItem*)item->nextSibling(); + item = (TDEListViewItem*)item->nextSibling(); } p->restore(); } @@ -507,7 +507,7 @@ EditorItem::compare( TQListViewItem *i, int col, bool ascending ) const void EditorItem::setHeight( int height ) { - KListViewItem::setHeight(height); + TDEListViewItem::setHeight(height); } ////////////////////////////////////////////////////// @@ -575,7 +575,7 @@ EditorGroupItem::paintCell(TQPainter *p, const TQColorGroup & cg, int column, in p->setFont(font); p->setBrush(cg.highlight()); //p->setPen(cg.highlightedText()); - KListViewItem::paintCell(p, cg, column, width, align); + TDEListViewItem::paintCell(p, cg, column, width, align); p->setPen(cg.text()); p->drawText(TQRect(0,0, totalWidth, height()), TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, text(0));*/ @@ -584,7 +584,7 @@ EditorGroupItem::paintCell(TQPainter *p, const TQColorGroup & cg, int column, in void EditorGroupItem::setup() { - KListViewItem::setup(); + TDEListViewItem::setup(); setHeight( height()+4 ); } @@ -602,7 +602,7 @@ EditorGroupItem::compare( TQListViewItem *i, int col, bool ascending ) const //////////////////////////////////////////////////////// -EditorDummyItem::EditorDummyItem(KListView *listview) +EditorDummyItem::EditorDummyItem(TDEListView *listview) : EditorItem(listview) { setSelectable(false); diff --git a/lib/koproperty/editoritem.h b/lib/koproperty/editoritem.h index fc703239..a1300e5a 100644 --- a/lib/koproperty/editoritem.h +++ b/lib/koproperty/editoritem.h @@ -44,7 +44,7 @@ class GroupWidget; \author Jaroslaw Staniek <[email protected]> @internal */ -class EditorItem : public KListViewItem +class EditorItem : public TDEListViewItem { public: typedef TQAsciiDict<EditorItem> Dict; @@ -56,7 +56,7 @@ class EditorItem : public KListViewItem TQListViewItem *after=0); //! Two helper contructors for subclass - EditorItem(KListView *parent); + EditorItem(TDEListView *parent); EditorItem(EditorItem *parent, const TQString &text); EditorItem(EditorItem *parent, EditorItem *after, const TQString &text); @@ -66,12 +66,12 @@ class EditorItem : public KListViewItem Property* property(); protected: - /*! Reimplemented from KListViewItem to draw custom contents. Properties names are wriiten in bold if + /*! Reimplemented from TDEListViewItem to draw custom contents. Properties names are wriiten in bold if modified. Also takes care of drawing borders around the cells as well as pixmaps or colors if necessary. */ virtual void paintCell(TQPainter *p, const TQColorGroup & cg, int column, int width, int align); - /*! Reimplemented from KListViewItem to draw custom contents. It takes care of drawing the [+] and [-] + /*! Reimplemented from TDEListViewItem to draw custom contents. It takes care of drawing the [+] and [-] signs only if the item has children. */ virtual void paintBranches(TQPainter *p, const TQColorGroup &cg, int w, int y, int h); @@ -102,7 +102,7 @@ class EditorGroupItem : public EditorItem protected: virtual void init(const TQString &icon); - /*! Reimplemented from KListViewItem to draw custom contents. */ + /*! Reimplemented from TDEListViewItem to draw custom contents. */ virtual void paintCell(TQPainter *p, const TQColorGroup & cg, int column, int width, int align); virtual void setup(); virtual int compare( TQListViewItem *i, int col, bool ascending ) const; @@ -115,7 +115,7 @@ class EditorGroupItem : public EditorItem class EditorDummyItem : public EditorItem { public: - EditorDummyItem(KListView *parent); + EditorDummyItem(TDEListView *parent); virtual ~EditorDummyItem(); protected: diff --git a/lib/koproperty/editors/fontedit.cpp b/lib/koproperty/editors/fontedit.cpp index 589e0a3b..84c7c3d2 100644 --- a/lib/koproperty/editors/fontedit.cpp +++ b/lib/koproperty/editors/fontedit.cpp @@ -41,11 +41,11 @@ namespace KoProperty { -class FontEditRequester : public KFontRequester +class FontEditRequester : public TDEFontRequester { public: FontEditRequester(TQWidget* parent) - : KFontRequester(parent) + : TDEFontRequester(parent) { label()->setPaletteBackgroundColor(palette().active().base()); label()->setMinimumWidth(0); @@ -53,7 +53,7 @@ class FontEditRequester : public KFontRequester label()->setIndent(-1); #if TDE_VERSION >= TDE_MAKE_VERSION(3,4,0) label()->setFocusPolicy(TQ_ClickFocus); - KAcceleratorManager::setNoAccel(label()); + TDEAcceleratorManager::setNoAccel(label()); #endif layout()->remove(label()); layout()->remove(button());//->reparent(this, 0, TQPoint(0,0)); @@ -67,7 +67,7 @@ class FontEditRequester : public KFontRequester } virtual void resizeEvent(TQResizeEvent *e) { - KFontRequester::resizeEvent(e); + TDEFontRequester::resizeEvent(e); label()->move(0,0); label()->resize(e->size()-TQSize(button()->width(),-1)); button()->move(label()->width(),0); diff --git a/lib/koproperty/editors/pixmapedit.cpp b/lib/koproperty/editors/pixmapedit.cpp index 30fd5dbd..f803d4c3 100644 --- a/lib/koproperty/editors/pixmapedit.cpp +++ b/lib/koproperty/editors/pixmapedit.cpp @@ -188,7 +188,7 @@ PixmapEdit::selectPixmap() //save last visited path KURL url(fileName); if (url.isLocalFile()) - KRecentDirs::add(":lastVisitedImagePath", url.directory()); + TDERecentDirs::add(":lastVisitedImagePath", url.directory()); #endif } diff --git a/lib/koproperty/test/test.cpp b/lib/koproperty/test/test.cpp index ecf41473..77ceb415 100644 --- a/lib/koproperty/test/test.cpp +++ b/lib/koproperty/test/test.cpp @@ -37,7 +37,7 @@ using namespace KoProperty; Test::Test() - : KMainWindow(0,"koproperty_test") + : TDEMainWindow(0,"koproperty_test") { TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); const bool flat = args->isSet("flat"); diff --git a/lib/koproperty/test/test.h b/lib/koproperty/test/test.h index 8d9dedb2..51ee85f5 100644 --- a/lib/koproperty/test/test.h +++ b/lib/koproperty/test/test.h @@ -33,7 +33,7 @@ * @author Cedric Pasteur <[email protected]> * @version 0.1 */ -class Test : public KMainWindow +class Test : public TDEMainWindow { Q_OBJECT |