Changed: #1302 Fix typos in comments/code.

--HG--
branch : gsoc2011-worldeditorqt
This commit is contained in:
dnk-88 2011-07-30 21:56:21 +03:00
parent 55f7ee692f
commit c5dbe3cc82
3 changed files with 9 additions and 16 deletions

View file

@ -45,8 +45,6 @@ PrimitivesView::PrimitivesView(QWidget *parent)
connect(m_deleteAction, SIGNAL(triggered()), this, SLOT(deletePrimitives()));
connect(this, SIGNAL(clicked(QModelIndex)), this, SLOT(clickedItem(QModelIndex)));
#ifdef Q_OS_DARWIN
setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
#endif
@ -62,10 +60,6 @@ void PrimitivesView::setModel(PrimitivesTreeModel *model)
m_primitivesTreeModel = model;
}
void PrimitivesView::clickedItem(const QModelIndex &index)
{
}
void PrimitivesView::deletePrimitives()
{
QModelIndexList indexList = selectionModel()->selectedRows();

View file

@ -51,7 +51,6 @@ public:
virtual void setModel(PrimitivesTreeModel *model);
private Q_SLOTS:
void clickedItem(const QModelIndex &index);
void deletePrimitives();
void addNewPrimitive(int value);
void generatePrimitives(int value);

View file

@ -22,19 +22,19 @@ namespace WorldEditor
{
namespace Constants
{
const char * const WORLD_EDITOR_PLUGIN = "WorldEditor";
const char *const WORLD_EDITOR_PLUGIN = "WorldEditor";
//settings
const char * const WORLD_EDITOR_SECTION = "WorldEditor";
const char * const WORLD_WINDOW_STATE = "WorldWindowState";
const char * const WORLD_WINDOW_GEOMETRY = "WorldWindowGeometry";
const char * const WORLD_EDITOR_CELL_SIZE = "WorldEditorCellSize";
const char * const WORLD_EDITOR_SNAP = "WorldEditorSnap";
const char * const ZONE_SNAPSHOT_RES = "WorldEditorZoneSnapshotRes";
const char * const PRIMITIVE_CLASS_FILENAME = "WorldEditorPrimitiveClassFilename";
const char *const WORLD_EDITOR_SECTION = "WorldEditor";
const char *const WORLD_WINDOW_STATE = "WorldWindowState";
const char *const WORLD_WINDOW_GEOMETRY = "WorldWindowGeometry";
const char *const WORLD_EDITOR_CELL_SIZE = "WorldEditorCellSize";
const char *const WORLD_EDITOR_SNAP = "WorldEditorSnap";
const char *const ZONE_SNAPSHOT_RES = "WorldEditorZoneSnapshotRes";
const char *const PRIMITIVE_CLASS_FILENAME = "WorldEditorPrimitiveClassFilename";
//resources
const char * const ICON_WORLD_EDITOR = ":/icons/ic_nel_world_editor.png";
const char *const ICON_WORLD_EDITOR = ":/icons/ic_nel_world_editor.png";
} // namespace Constants