mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Added PaintGui for textures.
This commit is contained in:
+5
-1
@@ -1532,7 +1532,11 @@ void MainWindow::addPaintItem(uid paintId, const QIcon& icon, const QString& nam
|
||||
// Create paint gui.
|
||||
PaintGui::ptr paintGui;
|
||||
QString paintType = paint->getType();
|
||||
if (paintType == "color")
|
||||
if (paintType == "media")
|
||||
paintGui = PaintGui::ptr(new MediaGui(paint));
|
||||
else if (paintType == "image")
|
||||
paintGui = PaintGui::ptr(new ImageGui(paint));
|
||||
else if (paintType == "color")
|
||||
paintGui = PaintGui::ptr(new ColorGui(paint));
|
||||
else
|
||||
paintGui = PaintGui::ptr(new PaintGui(paint));
|
||||
|
||||
Reference in New Issue
Block a user