From fc97fa250d89c620a99d58d0a787a648d680fb31 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 8 May 2008 20:44:26 +0000 Subject: * If one item is selected and the item is (at least partly) visible, assure that an automatic horizontal scrolling is done so that the item gets fully visible. * Use QTimeLine instead of QTimer + value CCMAIL: haraldhv@stud.ntnu.no svn path=/trunk/KDE/kdebase/apps/; revision=805596 --- src/ktreeview.h | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'src/ktreeview.h') diff --git a/src/ktreeview.h b/src/ktreeview.h index 93b4b892e..4a6262621 100644 --- a/src/ktreeview.h +++ b/src/ktreeview.h @@ -1,5 +1,6 @@ /*************************************************************************** * Copyright (C) 2008 by * + * Copyright (C) 2008 by * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -17,26 +18,27 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ -#ifndef _KTREEVIEW_H_ -#define _KTREEVIEW_H_ +#ifndef KTREEVIEW_H +#define KTREEVIEW_H #include class KTreeView : public QTreeView { + Q_OBJECT - Q_OBJECT +public: + KTreeView(QWidget *parent = 0); + virtual ~KTreeView(); - public: - KTreeView(QWidget *parent = NULL); + void setAutoHorizontalScroll(bool value); + bool autoHorizontalScroll() const; - void setAutoHorizontalScroll(bool value); - bool autoHorizontalScroll( void ); - - private: - class KTreeViewPrivate; - KTreeViewPrivate *d; + virtual void setSelectionModel(QItemSelectionModel *selectionModel); +private: + class KTreeViewPrivate; + KTreeViewPrivate *d; }; -#endif /* ifndef _KTREEVIEW_H_ */ +#endif /* ifndef KTREEVIEW_H */ -- cgit v1.3