Commit 9b4083f1 authored by Stefan Majewsky's avatar Stefan Majewsky

SVN_SILENT krazy

svn path=/trunk/KDE/kdegames/palapeli/; revision=1118724
parent 1c246389
...@@ -28,7 +28,7 @@ namespace Palapeli ...@@ -28,7 +28,7 @@ namespace Palapeli
{ {
Q_OBJECT Q_OBJECT
public: public:
FlatButton(const QIcon& icon, QWidget* parent = 0) : QLabel(parent), m_icon(icon) explicit FlatButton(const QIcon& icon, QWidget* parent = 0) : QLabel(parent), m_icon(icon)
{ {
leaveEvent(0); //apply icon leaveEvent(0); //apply icon
setMouseTracking(true); setMouseTracking(true);
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <KLocalizedString> #include <KLocalizedString>
Palapeli::TriggerConfigWidget::TriggerConfigWidget(QWidget* parent) Palapeli::TriggerConfigWidget::TriggerConfigWidget(QWidget* parent)
: QTabWidget(parent) : KTabWidget(parent)
, m_interactors(Palapeli::TriggerMapper::createInteractors(0)) //these interactors are just for reading metadata , m_interactors(Palapeli::TriggerMapper::createInteractors(0)) //these interactors are just for reading metadata
, m_mouseView(new Palapeli::TriggerListView(m_interactors, Palapeli::MouseInteractor, this)) , m_mouseView(new Palapeli::TriggerListView(m_interactors, Palapeli::MouseInteractor, this))
, m_wheelView(new Palapeli::TriggerListView(m_interactors, Palapeli::WheelInteractor, this)) , m_wheelView(new Palapeli::TriggerListView(m_interactors, Palapeli::WheelInteractor, this))
......
...@@ -20,14 +20,14 @@ ...@@ -20,14 +20,14 @@
#define PALAPELI_TRIGGERCONFIGWIDGET_H #define PALAPELI_TRIGGERCONFIGWIDGET_H
#include <QMap> #include <QMap>
#include <QTabWidget> #include <KTabWidget>
namespace Palapeli namespace Palapeli
{ {
class Interactor; class Interactor;
class TriggerListView; class TriggerListView;
class TriggerConfigWidget : public QTabWidget class TriggerConfigWidget : public KTabWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
......
...@@ -108,7 +108,7 @@ namespace Palapeli ...@@ -108,7 +108,7 @@ namespace Palapeli
{ {
Q_OBJECT Q_OBJECT
public: public:
TriggerListDelegate(QAbstractItemView* view, QObject* parent = 0) : KWidgetItemDelegate(view, parent) explicit TriggerListDelegate(QAbstractItemView* view, QObject* parent = 0) : KWidgetItemDelegate(view, parent)
{ {
m_calculator = new Palapeli::TriggerListDelegateWidget(view); m_calculator = new Palapeli::TriggerListDelegateWidget(view);
m_calculator->setVisible(false); m_calculator->setVisible(false);
......
...@@ -67,7 +67,7 @@ Palapeli::TriggerMapper::TriggerMapper() ...@@ -67,7 +67,7 @@ Palapeli::TriggerMapper::TriggerMapper()
m_keyModifierMap[Qt::Key_Control] = Qt::ControlModifier; m_keyModifierMap[Qt::Key_Control] = Qt::ControlModifier;
m_keyModifierMap[Qt::Key_Alt] = Qt::AltModifier; m_keyModifierMap[Qt::Key_Alt] = Qt::AltModifier;
m_keyModifierMap[Qt::Key_Meta] = Qt::MetaModifier; m_keyModifierMap[Qt::Key_Meta] = Qt::MetaModifier;
//intialize dynamic data //initialize dynamic data
readSettings(); readSettings();
} }
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<item> <item>
<widget class="QGroupBox" name="groupBox_3"> <widget class="QGroupBox" name="groupBox_3">
<property name="title"> <property name="title">
<string>Piece behavior</string> <string comment="@title:group">Piece behavior</string>
</property> </property>
<layout class="QFormLayout" name="formLayout"> <layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy"> <property name="fieldGrowthPolicy">
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text"> <property name="text">
<string extracomment="description for the &quot;snapping precision&quot; setting">Very precise (harder)</string> <string comment="@item:inrange description for the &quot;snapping precision&quot; setting">Very precise (harder)</string>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text"> <property name="text">
<string extracomment="description for the &quot;snapping precision&quot; setting">Unprecise (easier)</string> <string comment="@item:inrange description for the &quot;snapping precision&quot; setting">Unprecise (easier)</string>
</property> </property>
</widget> </widget>
</item> </item>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment