From f299f8b1e6df1024b26872008063101a424c3d8e Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 19 Apr 2011 19:19:34 -0500 Subject: [PATCH] Fixing account dialog buttons on Maemo 5 --- src/dialogs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dialogs.py b/src/dialogs.py index 3258931..84fe3d8 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -248,12 +248,12 @@ class AccountDialog(QtCore.QObject, qwrappers.WindowWrapper): self._applyButton.clicked.connect(self._on_settings_apply) self._cancelButton = QtGui.QPushButton("&Cancel") self._cancelButton.clicked.connect(self._on_settings_cancel) - self._buttonLayout = QtGui.QDialogButtonBox() - self._buttonLayout.addButton(self._applyButton, QtGui.QDialogButtonBox.AcceptRole) - self._buttonLayout.addButton(self._cancelButton, QtGui.QDialogButtonBox.RejectRole) + self._buttonLayout = QtGui.QHBoxLayout() + self._buttonLayout.addWidget(self._cancelButton) + self._buttonLayout.addWidget(self._applyButton) self._layout.addWidget(self._scrollSettings) - self._layout.addWidget(self._buttonLayout) + self._layout.addLayout(self._buttonLayout) self._layout.setDirection(QtGui.QBoxLayout.TopToBottom) self._window.setWindowTitle("Account") -- 1.7.9.5