util
focusedtreeview.h
00001 /* This file is part of KDevelop 00002 * 00003 * Copyright 2009 David Nolden <david.nolden.kdevelop@art-master.de> 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00018 * 02110-1301, USA. 00019 */ 00020 00021 #ifndef KDEVELOP_FOCUSEDTREEVIEW_H 00022 #define KDEVELOP_FOCUSEDTREEVIEW_H 00023 00024 #include <QtGui/QTreeView> 00025 #include "utilexport.h" 00026 00027 namespace KDevelop { 00028 00036 class KDEVPLATFORMUTIL_EXPORT FocusedTreeView : public QTreeView { 00037 Q_OBJECT 00038 public: 00039 FocusedTreeView(QWidget* parent) ; 00040 virtual int sizeHintForColumn(int column) const; 00041 virtual void rowsInserted(const QModelIndex& parent, int start, int end); 00042 private Q_SLOTS: 00043 void resizeColumnsToContents(); 00044 }; 00045 00046 } 00047 00048 #endif // KDEVELOP_FOCUSEDLISTVIEW_H
KDE 4.4 API Reference