This fixes the issue that the initial size of the Filter Panel is too small.
m_dirLister = 0; // deleted by m_dolphinModel
}
-QSize FoldersPanel::sizeHint() const
-{
- return QSize(200, 400);
-}
-
void FoldersPanel::setShowHiddenFiles(bool show)
{
FoldersPanelSettings::setShowHiddenFiles(show);
FoldersPanel(QWidget* parent = 0);
virtual ~FoldersPanel();
- /** @see QWidget::sizeHint() */
- virtual QSize sizeHint() const;
-
void setShowHiddenFiles(bool show);
bool showHiddenFiles() const;
{
}
-QSize InformationPanel::sizeHint() const
-{
- QSize size = Panel::sizeHint();
- size.setWidth(minimumSizeHint().width());
- return size;
-}
-
void InformationPanel::setSelection(const KFileItemList& selection)
{
if (!isVisible()) {
explicit InformationPanel(QWidget* parent = 0);
virtual ~InformationPanel();
- /** @see QWidget::sizeHint() */
- virtual QSize sizeHint() const;
-
signals:
void urlActivated(const KUrl& url);
return m_customContextMenuActions;
}
+QSize Panel::sizeHint() const
+{
+ // The size hint will be requested already when starting Dolphin even
+ // if the panel is invisible. For performance reasons most panels delay
+ // the creation and initialization of widgets until a showEvent() is called.
+ // Because of this the size-hint of the embedded widgets cannot be used
+ // and a default size is provided:
+ return QSize(180, 180);
+}
+
void Panel::setUrl(const KUrl& url)
{
if (url.equals(m_url, KUrl::CompareWithoutTrailingSlash)) {
void setCustomContextMenuActions(const QList<QAction*>& actions);
QList<QAction*> customContextMenuActions() const;
+ /** @see QWidget::sizeHint() */
+ virtual QSize sizeHint() const;
+
public slots:
/**
* This is invoked every time the folder being displayed in the
{
}
-QSize TerminalPanel::sizeHint() const
-{
- QSize size = Panel::sizeHint();
- size.setHeight(200);
- return size;
-}
-
void TerminalPanel::terminalExited()
{
emit hideTerminalPanel();
TerminalPanel(QWidget* parent = 0);
virtual ~TerminalPanel();
- /** @see QWidget::sizeHint() */
- virtual QSize sizeHint() const;
-
public slots:
void terminalExited();