From 954a8f77b960f01db0baebcd367b2b1695e7fa66 Mon Sep 17 00:00:00 2001 From: jupfi Date: Tue, 18 Jul 2023 10:07:38 +0200 Subject: [PATCH] Changed to toolbox buttons for event edit. --- src/nqrduck_pulseprogrammer/view.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nqrduck_pulseprogrammer/view.py b/src/nqrduck_pulseprogrammer/view.py index e18c820..8025a91 100644 --- a/src/nqrduck_pulseprogrammer/view.py +++ b/src/nqrduck_pulseprogrammer/view.py @@ -2,7 +2,7 @@ import logging import functools from collections import OrderedDict from PyQt6.QtGui import QIcon -from PyQt6.QtWidgets import QTableWidget, QVBoxLayout, QPushButton, QHBoxLayout, QLabel, QDialog, QLineEdit, QDialogButtonBox, QWidget, QCheckBox +from PyQt6.QtWidgets import QTableWidget, QVBoxLayout, QPushButton, QHBoxLayout, QLabel, QDialog, QLineEdit, QDialogButtonBox, QWidget, QCheckBox, QToolButton from PyQt6.QtCore import pyqtSlot, pyqtSignal from nqrduck.module.module_view import ModuleView from nqrduck_spectrometer.pulseparameters import BooleanOption, NumericOption @@ -171,9 +171,9 @@ class EventOptionsWidget(QWidget): self.event = event layout = QHBoxLayout() - self.edit_button = QPushButton("Edit") + self.edit_button = QToolButton() self.edit_button.clicked.connect(self.edit_event) - self.delete_button = QPushButton("Delete") + self.delete_button = QToolButton() self.delete_button.clicked.connect(self.create_delete_event_dialog) layout.addWidget(self.edit_button) layout.addWidget(self.delete_button)