Changeset View
Changeset View
Standalone View
Standalone View
plugins/subversion/svnimportmetadatawidget.cpp
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | 59 | | |||
60 | void SvnImportMetadataWidget::setSourceLocationEditable( bool enable ) | 60 | void SvnImportMetadataWidget::setSourceLocationEditable( bool enable ) | ||
61 | { | 61 | { | ||
62 | m_ui->srcEdit->setEnabled( enable ); | 62 | m_ui->srcEdit->setEnabled( enable ); | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | void SvnImportMetadataWidget::setMessage(const QString& message) | ||||
66 | { | ||||
67 | m_ui->message->setText(message); | ||||
68 | } | ||||
69 | | ||||
65 | QString SvnImportMetadataWidget::message() const | 70 | QString SvnImportMetadataWidget::message() const | ||
66 | { | 71 | { | ||
67 | return m_ui->message->toPlainText(); | 72 | return m_ui->message->toPlainText(); | ||
68 | } | 73 | } | ||
69 | 74 | | |||
70 | bool SvnImportMetadataWidget::hasValidData() const | 75 | bool SvnImportMetadataWidget::hasValidData() const | ||
71 | { | 76 | { | ||
72 | return !m_ui->message->toPlainText().isEmpty() && !m_ui->srcEdit->text().isEmpty(); | 77 | return !m_ui->message->toPlainText().isEmpty() && !m_ui->srcEdit->text().isEmpty(); | ||
73 | } | 78 | } | ||
74 | 79 | | |||
75 | 80 | |