~tomasgroth/openlp/portable-path

« back to all changes in this revision

Viewing changes to openlp/plugins/alerts/lib/alertstab.py

  • Committer: Tomas Groth
  • Date: 2019-04-30 19:02:42 UTC
  • mfrom: (2829.2.32 openlp)
  • Revision ID: tomasgroth@yahoo.dk-20190430190242-6zwjk8724tyux70m
trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
###############################################################################
5
5
# OpenLP - Open Source Lyrics Projection                                      #
6
6
# --------------------------------------------------------------------------- #
7
 
# Copyright (c) 2008-2018 OpenLP Developers                                   #
 
7
# Copyright (c) 2008-2019 OpenLP Developers                                   #
8
8
# --------------------------------------------------------------------------- #
9
9
# This program is free software; you can redistribute it and/or modify it     #
10
10
# under the terms of the GNU General Public License as published by the Free  #
24
24
 
25
25
from openlp.core.common.i18n import UiStrings, translate
26
26
from openlp.core.common.settings import Settings
27
 
from openlp.core.lib import SettingsTab
 
27
from openlp.core.lib.settingstab import SettingsTab
28
28
from openlp.core.lib.ui import create_valign_selection_widgets
29
29
from openlp.core.widgets.buttons import ColorButton
30
30
 
33
33
    """
34
34
    AlertsTab is the alerts settings tab in the settings dialog.
35
35
    """
36
 
    def setupUi(self):
 
36
    def setup_ui(self):
37
37
        self.setObjectName('AlertsTab')
38
 
        super(AlertsTab, self).setupUi()
 
38
        super(AlertsTab, self).setup_ui()
39
39
        self.font_group_box = QtWidgets.QGroupBox(self.left_column)
40
40
        self.font_group_box.setObjectName('font_group_box')
41
41
        self.font_layout = QtWidgets.QFormLayout(self.font_group_box)
93
93
        self.timeout_spin_box.valueChanged.connect(self.on_timeout_spin_box_changed)
94
94
        self.font_size_spin_box.valueChanged.connect(self.on_font_size_spin_box_changed)
95
95
 
96
 
    def retranslateUi(self):
 
96
    def retranslate_ui(self):
97
97
        self.font_group_box.setTitle(translate('AlertsPlugin.AlertsTab', 'Font'))
98
98
        self.font_label.setText(translate('AlertsPlugin.AlertsTab', 'Font name:'))
99
99
        self.font_color_label.setText(translate('AlertsPlugin.AlertsTab', 'Font color:'))