mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Dolphin: Use the Nepomuk2::FileMetaDatConfigWidget
Instead of the KFileMetaDataConfigurationWidget REVIEW: 111294
This commit is contained in:
parent
7799bf1828
commit
dedebed468
|
@ -19,7 +19,12 @@
|
|||
|
||||
#include "filemetadataconfigurationdialog.h"
|
||||
|
||||
#ifndef HAVE_NEPOMUK
|
||||
#include <kfilemetadataconfigurationwidget.h>
|
||||
#else
|
||||
#include <nepomuk2/filemetadataconfigwidget.h>
|
||||
#endif
|
||||
|
||||
#include <KLocale>
|
||||
#include <QLabel>
|
||||
#include <QVBoxLayout>
|
||||
|
@ -34,13 +39,17 @@ FileMetaDataConfigurationDialog::FileMetaDataConfigurationDialog(QWidget* parent
|
|||
setButtons(KDialog::Ok | KDialog::Cancel);
|
||||
setDefaultButton(KDialog::Ok);
|
||||
|
||||
|
||||
m_descriptionLabel = new QLabel(i18nc("@label::textbox",
|
||||
"Select which data should "
|
||||
"be shown:"), this);
|
||||
m_descriptionLabel->setWordWrap(true);
|
||||
|
||||
#ifndef HAVE_NEPOMUK
|
||||
m_configWidget = new KFileMetaDataConfigurationWidget(this);
|
||||
#else
|
||||
m_configWidget = new Nepomuk2::FileMetaDataConfigWidget(this);
|
||||
#endif
|
||||
|
||||
|
||||
QWidget* mainWidget = new QWidget(this);
|
||||
QVBoxLayout* topLayout = new QVBoxLayout(mainWidget);
|
||||
|
|
|
@ -22,9 +22,17 @@
|
|||
|
||||
#include <KDialog>
|
||||
#include <KFileItem>
|
||||
#include "config-nepomuk.h"
|
||||
|
||||
#ifndef HAVE_NEPOMUK
|
||||
class KFileMetaDataConfigurationWidget;
|
||||
#else
|
||||
namespace Nepomuk2 {
|
||||
class FileMetaDataConfigWidget;
|
||||
}
|
||||
#endif
|
||||
|
||||
class QLabel;
|
||||
class KFileMetaDataConfigurationWidget;
|
||||
|
||||
/**
|
||||
* @brief Dialog which allows to configure which meta data should be shown
|
||||
|
@ -63,7 +71,11 @@ protected slots:
|
|||
|
||||
private:
|
||||
QLabel* m_descriptionLabel;
|
||||
#ifndef HAVE_NEPOMUK
|
||||
KFileMetaDataConfigurationWidget* m_configWidget;
|
||||
#else
|
||||
Nepomuk2::FileMetaDataConfigWidget* m_configWidget;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue