provide a useful default width for the Folders dock (treeview)

svn path=/trunk/KDE/kdebase/apps/; revision=692544
This commit is contained in:
Peter Penz 2007-07-25 20:04:14 +00:00
parent 55643abf69
commit 9e8f0ec1a4
2 changed files with 10 additions and 0 deletions

View file

@ -51,6 +51,13 @@ TreeViewSidebarPage::~TreeViewSidebarPage()
m_dirLister = 0;
}
QSize TreeViewSidebarPage::sizeHint() const
{
QSize size = SidebarPage::sizeHint();
size.setWidth(200);
return size;
}
void TreeViewSidebarPage::setUrl(const KUrl& url)
{
if (!url.isValid() || (url == SidebarPage::url())) {

View file

@ -45,6 +45,9 @@ public:
TreeViewSidebarPage(QWidget* parent = 0);
virtual ~TreeViewSidebarPage();
/** @see QWidget::sizeHint() */
virtual QSize sizeHint() const;
public slots:
/**
* Changes the current selection inside the tree to \a url.