Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

add DVGui:: prefix

Shinya Kitaoka577b68d441c4
diff --git a/toonz/sources/toonz/mainwindow.cpp b/toonz/sources/toonz/mainwindow.cpp
index 4b36902fc..0a368f9de 100644
--- a/toonz/sources/toonz/mainwindow.cpp
+++ b/toonz/sources/toonz/mainwindow.cpp
@@ -202,7 +202,7 @@ void makePrivate(Room *room)
if (TFileStatus(templateFullMBPath).doesExist())
TSystem::copyFile(myMBPath, templateFullMBPath);
else
- DVGui::MsgBox(WARNING, QObject::tr("Cannot open menubar settings template file. Re-installing Toonz will solve this problem."));
+ DVGui::warning(QObject::tr("Cannot open menubar settings template file. Re-installing Toonz will solve this problem."));
}
}
}
diff --git a/toonz/sources/toonz/menubar.cpp b/toonz/sources/toonz/menubar.cpp
index 866880ffe..02de27733 100644
--- a/toonz/sources/toonz/menubar.cpp
+++ b/toonz/sources/toonz/menubar.cpp
@@ -1449,13 +1449,13 @@ void StackedMenuBar::doCustomizeMenuBar(int index)
TFilePath mbPath = ToonzFolder::getMyModuleDir() + mbFileName;
if (!TFileStatus(mbPath).isReadable())
{
- DVGui::MsgBox(WARNING, tr("Cannot open menubar settings file %1").arg(QString::fromStdString(mbFileName)));
+ DVGui::warning(tr("Cannot open menubar settings file %1").arg(QString::fromStdString(mbFileName)));
return;
}
QMenuBar* newMenu = loadMenuBar(mbPath);
if (!newMenu)
{
- DVGui::MsgBox(WARNING, tr("Failed to create menubar"));
+ DVGui::warning(tr("Failed to create menubar"));
return;
}
diff --git a/toonz/sources/toonz/menubarpopup.h b/toonz/sources/toonz/menubarpopup.h
index 267033165..1b5af8497 100644
--- a/toonz/sources/toonz/menubarpopup.h
+++ b/toonz/sources/toonz/menubarpopup.h
@@ -57,7 +57,7 @@ protected:
// MenuBarPopup
//-----------------------------------------------------------------------------
-class MenuBarPopup : public Dialog
+class MenuBarPopup : public DVGui::Dialog
{
Q_OBJECT
CommandListTree* m_commandListTree;