-QSize InformationPanel::sizeHint() const
-{
- QSize size = Panel::sizeHint();
- size.setWidth(minimumSizeHint().width());
- return size;
-}
-
-void InformationPanel::setUrl(const KUrl& url)
-{
- Panel::setUrl(url);
- if (url.isValid() && !isEqualToShownUrl(url)) {
- if (isVisible()) {
- cancelRequest();
- m_shownUrl = url;
- // Update the content with a delay. This gives
- // the directory lister the chance to show the content
- // before expensive operations are done to show
- // meta information.
- m_urlChangedTimer->start();
- } else {
- m_shownUrl = url;
- }
- }
-}
-