mirror of
https://github.com/huderlem/porymap.git
synced 2026-03-21 17:45:44 -05:00
Replace some QDialogs with window widgets
Some checks are pending
Build Porymap / build-linux (, 5.14.2) (push) Waiting to run
Build Porymap / build-linux (, 6.8.*) (push) Waiting to run
Build Porymap / build-linux (minimal, 5.14.2) (push) Waiting to run
Build Porymap / build-macos (macos-15-intel) (push) Waiting to run
Build Porymap / build-macos (macos-latest) (push) Waiting to run
Build Porymap / build-static-windows (push) Waiting to run
Some checks are pending
Build Porymap / build-linux (, 5.14.2) (push) Waiting to run
Build Porymap / build-linux (, 6.8.*) (push) Waiting to run
Build Porymap / build-linux (minimal, 5.14.2) (push) Waiting to run
Build Porymap / build-macos (macos-15-intel) (push) Waiting to run
Build Porymap / build-macos (macos-latest) (push) Waiting to run
Build Porymap / build-static-windows (push) Waiting to run
This commit is contained in:
parent
95104c5a79
commit
0582745103
|
|
@ -20,6 +20,7 @@ and this project somewhat adheres to [Semantic Versioning](https://semver.org/sp
|
|||
- Fix the tool tips for the tileset selectors always listing the same tileset size.
|
||||
- Fix event sprite names that appear in `symbol_obj_event_gfx_pointers` by value and not by name not rendering with the correct sprite.
|
||||
- Fix event sprites sometimes rendering with incorrect transparency temporarily after a sprite change.
|
||||
- Fix not being able to minimize/maximize some windows.
|
||||
|
||||
## [6.3.0] - 2025-12-26
|
||||
### Added
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>MapImageExporter</class>
|
||||
<widget class="QDialog" name="MapImageExporter">
|
||||
<widget class="QWidget" name="MapImageExporter">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
|
|
@ -13,9 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>Export Map Image</string>
|
||||
</property>
|
||||
<property name="sizeGripEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_4" columnstretch="2,1">
|
||||
<item row="1" column="1">
|
||||
<widget class="QFrame" name="frame_Options">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>PaletteColorSearch</class>
|
||||
<widget class="QDialog" name="PaletteColorSearch">
|
||||
<widget class="QWidget" name="PaletteColorSearch">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>WildMonSearch</class>
|
||||
<widget class="QDialog" name="WildMonSearch">
|
||||
<widget class="QWidget" name="WildMonSearch">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ struct ImageExporterSettings {
|
|||
QColor fillColor = Qt::transparent;
|
||||
};
|
||||
|
||||
class MapImageExporter : public QDialog
|
||||
class MapImageExporter : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef PALETTECOLORSEARCH_H
|
||||
#define PALETTECOLORSEARCH_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QWidget>
|
||||
#include <QIcon>
|
||||
#include <QMap>
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ namespace Ui {
|
|||
class PaletteColorSearch;
|
||||
}
|
||||
|
||||
class PaletteColorSearch : public QDialog
|
||||
class PaletteColorSearch : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef WILDMONSEARCH_H
|
||||
#define WILDMONSEARCH_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QWidget>
|
||||
|
||||
#include "numericsorttableitem.h"
|
||||
|
||||
|
|
@ -11,7 +11,7 @@ namespace Ui {
|
|||
class WildMonSearch;
|
||||
}
|
||||
|
||||
class WildMonSearch : public QDialog
|
||||
class WildMonSearch : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ QString MapImageExporter::getDescription(ImageExporterMode mode) {
|
|||
}
|
||||
|
||||
MapImageExporter::MapImageExporter(QWidget *parent, Project *project, Map *map, Layout *layout, ImageExporterMode mode) :
|
||||
QDialog(parent),
|
||||
QWidget(parent),
|
||||
ui(new Ui::MapImageExporter),
|
||||
m_project(project),
|
||||
m_map(map),
|
||||
|
|
@ -44,6 +44,7 @@ MapImageExporter::MapImageExporter(QWidget *parent, Project *project, Map *map,
|
|||
m_originalMode(mode)
|
||||
{
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
setWindowFlags(Qt::Window);
|
||||
ui->setupUi(this);
|
||||
|
||||
m_scene = new CheckeredBgScene(QSize(8,8), this);
|
||||
|
|
@ -132,7 +133,7 @@ void MapImageExporter::showEvent(QShowEvent *event) {
|
|||
}
|
||||
|
||||
void MapImageExporter::resizeEvent(QResizeEvent *event) {
|
||||
QDialog::resizeEvent(event);
|
||||
QWidget::resizeEvent(event);
|
||||
scalePreview();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,17 +12,18 @@ enum ResultsDataRole {
|
|||
};
|
||||
|
||||
PaletteColorSearch::PaletteColorSearch(Project *project, const Tileset *primaryTileset, const Tileset *secondaryTileset, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
QWidget(parent),
|
||||
ui(new Ui::PaletteColorSearch),
|
||||
m_project(project),
|
||||
m_primaryTileset(primaryTileset),
|
||||
m_secondaryTileset(secondaryTileset)
|
||||
{
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
setWindowFlags(Qt::Window);
|
||||
ui->setupUi(this);
|
||||
|
||||
ui->buttonBox->setVisible(isModal());
|
||||
connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::close);
|
||||
connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &QWidget::close);
|
||||
|
||||
// Rather than try to keep track of metatile/tile changes that affect which colors are used,
|
||||
// we'll just refresh when the window is activated.
|
||||
|
|
|
|||
|
|
@ -14,11 +14,12 @@ enum ResultsDataRole {
|
|||
};
|
||||
|
||||
WildMonSearch::WildMonSearch(Project *project, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
QWidget(parent),
|
||||
ui(new Ui::WildMonSearch),
|
||||
project(project)
|
||||
{
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
setWindowFlags(Qt::Window);
|
||||
ui->setupUi(this);
|
||||
|
||||
// Set up species combo box
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user