#include <kurl.h>
#include <kvbox.h>
+class KFileItem;
+class KFileMetaDataWidget;
+class KSeparator;
+class MetaTextLabel;
class PhononWidget;
class PixmapViewer;
-class MetaDataWidget;
-class MetaTextLabel;
class QPixmap;
class QString;
-class KFileItem;
-class KSeparator;
class QLabel;
class QScrollArea;
/**
* Shows the meta information for the item \p item.
* The preview of the item is generated asynchronously,
- * the other meta informations are fetched synchronously.
+ * the other meta information are fetched synchronously.
*/
void showItem(const KFileItem& item);
*/
void configureSettings();
+signals:
+ void urlActivated( const KUrl& url );
+
protected:
/** @see QObject::eventFilter() */
virtual bool eventFilter(QObject* obj, QEvent* event);
*/
void setNameLabelText(const QString& text);
+ /**
+ * Adjusts the sizes of the widgets dependent on the available
+ * width given by \p width.
+ */
+ void adjustWidgetSizes(int width);
+
private:
KFileItem m_item;
bool m_pendingPreview;
QTimer* m_outdatedPreviewTimer;
- QLabel* m_nameLabel;
PixmapViewer* m_preview;
- KSeparator* m_previewSeparator;
PhononWidget* m_phononWidget;
- MetaDataWidget* m_metaDataWidget;
+ QLabel* m_nameLabel;
+ KFileMetaDataWidget* m_metaDataWidget;
QScrollArea* m_metaDataArea;
};