mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 08:01:13 +02:00
2022-12-13 Fred Gleason <fredg@paravelsystems.com>
* Added logic to the 'Edit Log Marker' dialog in rdlogedit(1) to prevent entry of an empty comment. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -23810,3 +23810,6 @@
|
|||||||
2022-12-13 Fred Gleason <fredg@paravelsystems.com>
|
2022-12-13 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Added logic to the 'Edit Voice Track Marker' dialog in rdlogedit(1)
|
* Added logic to the 'Edit Voice Track Marker' dialog in rdlogedit(1)
|
||||||
to prevent entry of an empty comment.
|
to prevent entry of an empty comment.
|
||||||
|
2022-12-13 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Added logic to the 'Edit Log Marker' dialog in rdlogedit(1)
|
||||||
|
to prevent entry of an empty comment.
|
||||||
|
@@ -42,6 +42,8 @@ EditMarker::EditMarker(QWidget *parent)
|
|||||||
QLabel *label=new QLabel(tr("Comment"),this);
|
QLabel *label=new QLabel(tr("Comment"),this);
|
||||||
label->setFont(labelFont());
|
label->setFont(labelFont());
|
||||||
label->setGeometry(12,100,70,14);
|
label->setGeometry(12,100,70,14);
|
||||||
|
connect(edit_comment_edit,SIGNAL(textChanged(const QString &)),
|
||||||
|
this,SLOT(commentChangedData(const QString &)));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Label
|
// Label
|
||||||
@@ -72,11 +74,18 @@ int EditMarker::exec(RDLogLine *ll)
|
|||||||
setLogLine(ll);
|
setLogLine(ll);
|
||||||
edit_comment_edit->setText(logLine()->markerComment());
|
edit_comment_edit->setText(logLine()->markerComment());
|
||||||
edit_label_edit->setText(logLine()->markerLabel());
|
edit_label_edit->setText(logLine()->markerLabel());
|
||||||
|
commentChangedData(edit_comment_edit->text());
|
||||||
|
|
||||||
return EditEvent::exec();
|
return EditEvent::exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void EditMarker::commentChangedData(const QString &str)
|
||||||
|
{
|
||||||
|
setOkEnabled(!str.trimmed().isEmpty());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool EditMarker::saveData()
|
bool EditMarker::saveData()
|
||||||
{
|
{
|
||||||
logLine()->setMarkerComment(edit_comment_edit->text());
|
logLine()->setMarkerComment(edit_comment_edit->text());
|
||||||
|
@@ -36,6 +36,9 @@ class EditMarker : public EditEvent
|
|||||||
public slots:
|
public slots:
|
||||||
int exec(RDLogLine *ll);
|
int exec(RDLogLine *ll);
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void commentChangedData(const QString &str);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool saveData();
|
bool saveData();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user