21 #include <QApplication> 22 #include <QPushButton> 25 #include <KConfigGroup> 27 #include <KSharedConfig> 35 #define CONFIG_SECTION "LabelProperties" 39 :QDialog(parent), LabelPropertiesWidgetBase(),
40 m_length(0), m_sample_rate(0)
44 if (time) time->setTitle(QString());
45 setFixedSize(sizeHint());
48 buttonBox->button(QDialogButtonBox::Ok)->setFocus();
60 if (lblIndex) lblIndex->setText(QString::number(index));
78 const KConfigGroup cfg = KSharedConfig::openConfig()->group(
CONFIG_SECTION);
80 QString str = cfg.readEntry(
"mode");
81 unsigned int m = str.toUInt(&ok);
90 quint64 p = time->samplesToTime(
103 Q_ASSERT(edDescription);
104 if (edDescription) edDescription->setText(name);
111 return (time) ? time->samples() : 0;
117 Q_ASSERT(edDescription);
118 return (edDescription) ? edDescription->text() :
_(
"");
125 KConfigGroup cfg = KSharedConfig::openConfig()->group(
CONFIG_SECTION);
127 str.setNum(static_cast<int>(time->mode()));
128 cfg.writeEntry(
"mode", str);