diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2020-09-23 18:34:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 18:34:15 +0200 |
| commit | 865ae1d802cc58cc812f4802c0b3f8c1ca7a38f3 (patch) | |
| tree | 7618511f1baa4f8f3be68ebbe5e8a8a883176730 /src/modinfodialogtab.cpp | |
| parent | 77576f626d76be8098ef807dad5633a60a8c03a5 (diff) | |
| parent | d9cc013813a2a360a9518ecfd3b2e0bb0596d86a (diff) | |
Merge pull request #1236 from Holt59/expose-modinterface-meta
Add getters for most meta-information in mod.
Diffstat (limited to 'src/modinfodialogtab.cpp')
| -rw-r--r-- | src/modinfodialogtab.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modinfodialogtab.cpp b/src/modinfodialogtab.cpp index f795cdf9..e5ced4f7 100644 --- a/src/modinfodialogtab.cpp +++ b/src/modinfodialogtab.cpp @@ -163,7 +163,7 @@ void NotesTab::updateCommentsColor(bool clear) QPalette commentPalette = QPalette(); if (!clear) { - auto modColor = mod().getColor(); + auto modColor = mod().color(); if (modColor.isValid()) { commentPalette.setColor(QPalette::Base, modColor); commentPalette.setColor(QPalette::Text, ColorSettings::idealTextColor(modColor)); @@ -219,7 +219,7 @@ void NotesTab::onSetColor() QColorDialog dialog(m_parent); dialog.setOption(QColorDialog::ShowAlphaChannel); - QColor currentColor = mod().getColor(); + QColor currentColor = mod().color(); if (currentColor.isValid()) { dialog.setCurrentColor(currentColor); @@ -256,5 +256,5 @@ void NotesTab::checkHasData() setHasData( !ui->comments->text().isEmpty() || !ui->notes->toPlainText().isEmpty() || - mod().getColor().isValid()); + mod().color().isValid()); } |
