Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed dialog windows tiling like main windows on tiling window managers. #464

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tagstudio/src/qt/modals/add_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from PySide6.QtCore import Signal, Qt
from PySide6.QtWidgets import (
QWidget,
QDialog,
QVBoxLayout,
QHBoxLayout,
QLabel,
Expand All @@ -16,7 +17,7 @@
from src.core.library import Library


class AddFieldModal(QWidget):
class AddFieldModal(QDialog):
done = Signal(int)

def __init__(self, library: "Library"):
Expand Down
3 changes: 2 additions & 1 deletion tagstudio/src/qt/modals/delete_unlinked.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from PySide6.QtGui import QStandardItemModel, QStandardItem
from PySide6.QtWidgets import (
QWidget,
QDialog,
QVBoxLayout,
QHBoxLayout,
QLabel,
Expand All @@ -25,7 +26,7 @@
from src.qt.ts_qt import QtDriver


class DeleteUnlinkedEntriesModal(QWidget):
class DeleteUnlinkedEntriesModal(QDialog):
done = Signal()

def __init__(self, library: "Library", driver: "QtDriver"):
Expand Down
1 change: 1 addition & 0 deletions tagstudio/src/qt/modals/file_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
QVBoxLayout,
QHBoxLayout,
QWidget,
QDialog,
QPushButton,
QTableWidget,
QTableWidgetItem,
Expand Down
3 changes: 2 additions & 1 deletion tagstudio/src/qt/modals/fix_dupes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from PySide6.QtCore import Qt
from PySide6.QtWidgets import (
QWidget,
QDialog,
QVBoxLayout,
QHBoxLayout,
QLabel,
Expand All @@ -24,7 +25,7 @@
from src.qt.ts_qt import QtDriver


class FixDupeFilesModal(QWidget):
class FixDupeFilesModal(QDialog):
# done = Signal(int)
def __init__(self, library: "Library", driver: "QtDriver"):
super().__init__()
Expand Down
4 changes: 2 additions & 2 deletions tagstudio/src/qt/modals/fix_unlinked.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import typing

from PySide6.QtCore import Qt, QThreadPool
from PySide6.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QLabel, QPushButton
from PySide6.QtWidgets import QWidget, QDialog, QVBoxLayout, QHBoxLayout, QLabel, QPushButton

from src.core.library import Library
from src.qt.helpers.function_iterator import FunctionIterator
Expand All @@ -29,7 +29,7 @@
logging.basicConfig(format="%(message)s", level=logging.INFO)


class FixUnlinkedEntriesModal(QWidget):
class FixUnlinkedEntriesModal(QDialog):
def __init__(self, library: "Library", driver: "QtDriver"):
super().__init__()
self.lib = library
Expand Down
3 changes: 2 additions & 1 deletion tagstudio/src/qt/modals/folders_to_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from PySide6.QtCore import Qt
from PySide6.QtWidgets import (
QWidget,
QDialog,
QVBoxLayout,
QHBoxLayout,
QLabel,
Expand Down Expand Up @@ -157,7 +158,7 @@ def cut_branches_adding_nothing(branch: dict):
return tree


class FoldersToTagsModal(QWidget):
class FoldersToTagsModal(QDialog):
# done = Signal(int)
def __init__(self, library: "Library", driver: "QtDriver"):
super().__init__()
Expand Down
3 changes: 2 additions & 1 deletion tagstudio/src/qt/modals/mirror_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from PySide6.QtGui import QStandardItemModel, QStandardItem
from PySide6.QtWidgets import (
QWidget,
QDialog,
QVBoxLayout,
QHBoxLayout,
QLabel,
Expand All @@ -27,7 +28,7 @@
from src.qt.ts_qt import QtDriver


class MirrorEntriesModal(QWidget):
class MirrorEntriesModal(QDialog):
done = Signal()

def __init__(self, library: "Library", driver: "QtDriver"):
Expand Down
4 changes: 2 additions & 2 deletions tagstudio/src/qt/widgets/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from typing import Callable

from PySide6.QtCore import Signal, Qt
from PySide6.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QLabel, QPushButton
from PySide6.QtWidgets import QWidget, QDialog, QVBoxLayout, QHBoxLayout, QLabel, QPushButton


class PanelModal(QWidget):
class PanelModal(QDialog):
saved = Signal()

# TODO: Separate callbacks from the buttons you want, and just generally
Expand Down
4 changes: 2 additions & 2 deletions tagstudio/src/qt/widgets/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from typing import Optional

from PySide6.QtCore import Qt
from PySide6.QtWidgets import QWidget, QVBoxLayout, QProgressDialog
from PySide6.QtWidgets import QWidget, QDialog, QVBoxLayout, QProgressDialog


class ProgressWidget(QWidget):
class ProgressWidget(QDialog):
"""Prebuilt thread-safe progress bar widget."""

def __init__(
Expand Down
Loading