Typo found by Yuri Chornoivan
[kdepim.git] / kdgantt / kdgantttimescalezoomdialog.cpp
blob69e5111417547e8c28b68e8b29c01b50afba2ff3
1 /* This file is part of the KOffice project
2 * Copyright (c) 2008 Dag Andersen <kplato@kde.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 #include "kdgantttimescalezoomdialog.h"
22 #include <QLocale>
23 #include <QHBoxLayout>
24 #include <QToolButton>
26 namespace KDGantt {
28 TimeScaleZoomDialog::TimeScaleZoomDialog( QWidget *parent )
29 : QDialog( parent )
31 pane.setupUi( this );
32 zoomIn = pane.zoomIn;
33 zoomOut = pane.zoomOut;
36 void Ui_TimeScaleZoomPane::setupUi(QDialog *KDGantt__TimeScaleZoomPane)
38 if (KDGantt__TimeScaleZoomPane->objectName().isEmpty())
39 KDGantt__TimeScaleZoomPane->setObjectName(QString::fromUtf8("KDGantt__TimeScaleZoomPane"));
40 KDGantt__TimeScaleZoomPane->resize(152, 55);
41 KDGantt__TimeScaleZoomPane->setLocale(QLocale(QLocale::C, QLocale::AnyCountry));
42 KDGantt__TimeScaleZoomPane->setModal(true);
43 horizontalLayout = new QHBoxLayout(KDGantt__TimeScaleZoomPane);
44 horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
45 zoomIn = new QToolButton(KDGantt__TimeScaleZoomPane);
46 zoomIn->setObjectName(QString::fromUtf8("zoomIn"));
47 zoomIn->setAutoRepeat(true);
48 zoomIn->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
49 zoomIn->setAutoRaise(false);
50 zoomIn->setArrowType(Qt::LeftArrow);
52 horizontalLayout->addWidget(zoomIn);
54 zoomOut = new QToolButton(KDGantt__TimeScaleZoomPane);
55 zoomOut->setObjectName(QString::fromUtf8("zoomOut"));
56 zoomOut->setAutoRepeat(true);
57 zoomOut->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
58 zoomOut->setAutoRaise(false);
59 zoomOut->setArrowType(Qt::RightArrow);
61 horizontalLayout->addWidget(zoomOut);
64 retranslateUi(KDGantt__TimeScaleZoomPane);
66 QMetaObject::connectSlotsByName(KDGantt__TimeScaleZoomPane);
67 } // setupUi
69 void Ui_TimeScaleZoomPane::retranslateUi(QDialog *KDGantt__TimeScaleZoomPane)
71 KDGantt__TimeScaleZoomPane->setWindowTitle(QDialog::tr("Zoom"));
72 zoomOut->setText(QDialog::tr("Zoom out"));
73 zoomIn->setText(QDialog::tr("Zoom in"));
74 Q_UNUSED(KDGantt__TimeScaleZoomPane);
75 } // retranslateUi
77 } // namespace KDGantt
79 #include "moc_kdgantttimescalezoomdialog.cpp"