mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 08:21:22 +00:00
minor cleanups
svn path=/trunk/KDE/kdebase/apps/; revision=725523
This commit is contained in:
parent
d059b705a9
commit
2ddc27b423
|
@ -180,7 +180,6 @@ void DolphinStatusBar::showSpaceInfo()
|
||||||
// The space information is shown currently. Hide it
|
// The space information is shown currently. Hide it
|
||||||
// if the progress bar is visible or if the status bar
|
// if the progress bar is visible or if the status bar
|
||||||
// text does not fit into the available width.
|
// text does not fit into the available width.
|
||||||
const QSize size(m_progressBar->sizeHint());
|
|
||||||
if (isProgressBarVisible || (widthGap > 0)) {
|
if (isProgressBarVisible || (widthGap > 0)) {
|
||||||
m_spaceInfo->hide();
|
m_spaceInfo->hide();
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,30 +51,16 @@ public:
|
||||||
|
|
||||||
void setMessage(const QString& text, DolphinStatusBar::Type type);
|
void setMessage(const QString& text, DolphinStatusBar::Type type);
|
||||||
|
|
||||||
DolphinStatusBar::Type type() const
|
DolphinStatusBar::Type type() const;
|
||||||
{
|
|
||||||
return m_type;
|
|
||||||
}
|
|
||||||
const QString& text() const
|
|
||||||
{
|
|
||||||
return m_text;
|
|
||||||
}
|
|
||||||
|
|
||||||
void setDefaultText(const QString& text)
|
const QString& text() const;
|
||||||
{
|
|
||||||
m_defaultText = text;
|
void setDefaultText(const QString& text);
|
||||||
}
|
const QString& defaultText() const;
|
||||||
const QString& defaultText() const
|
|
||||||
{
|
|
||||||
return m_defaultText;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: maybe a better approach is possible with the size hint
|
// TODO: maybe a better approach is possible with the size hint
|
||||||
void setMinimumTextHeight(int min);
|
void setMinimumTextHeight(int min);
|
||||||
int minimumTextHeight() const
|
int minimumTextHeight() const;
|
||||||
{
|
|
||||||
return m_minTextHeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the gap of the width of the current set text to the
|
* Returns the gap of the width of the current set text to the
|
||||||
|
@ -161,4 +147,29 @@ private:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inline DolphinStatusBar::Type StatusBarMessageLabel::type() const
|
||||||
|
{
|
||||||
|
return m_type;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline const QString& StatusBarMessageLabel::text() const
|
||||||
|
{
|
||||||
|
return m_text;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void StatusBarMessageLabel::setDefaultText(const QString& text)
|
||||||
|
{
|
||||||
|
m_defaultText = text;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline const QString& StatusBarMessageLabel::defaultText() const
|
||||||
|
{
|
||||||
|
return m_defaultText;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline int StatusBarMessageLabel::minimumTextHeight() const
|
||||||
|
{
|
||||||
|
return m_minTextHeight;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue