mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
provide a useful default width for the Folders dock (treeview)
svn path=/trunk/KDE/kdebase/apps/; revision=692544
This commit is contained in:
parent
55643abf69
commit
9e8f0ec1a4
2 changed files with 10 additions and 0 deletions
|
@ -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())) {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue