removed some other warning

preferencesAboutTextFull
Claudio Valerio 13 years ago
parent ad6f1ea6e0
commit ee2bd80315
  1. 4
      src/board/UBBoardController.cpp
  2. 8
      src/gui/UBActionPalette.cpp

@ -1184,7 +1184,6 @@ void UBBoardController::ClearUndoStack()
{ {
QSet<QGraphicsItem*> uniqueItems; QSet<QGraphicsItem*> uniqueItems;
// go through all stack command // go through all stack command
int count = UBApplication::undoStack->count();
for(int i = 0; i < UBApplication::undoStack->count(); i++) for(int i = 0; i < UBApplication::undoStack->count(); i++)
{ {
@ -1214,7 +1213,6 @@ void UBBoardController::ClearUndoStack()
// clear stack, and command list // clear stack, and command list
UBApplication::undoStack->clear(); UBApplication::undoStack->clear();
count = UBApplication::undoStack->count();
// go through all unique items, and check, ot on scene, or not. // go through all unique items, and check, ot on scene, or not.
// if not on scene, than item can be deleted // if not on scene, than item can be deleted
@ -1226,7 +1224,7 @@ void UBBoardController::ClearUndoStack()
UBGraphicsScene *scene = (UBGraphicsScene*)item->scene(); UBGraphicsScene *scene = (UBGraphicsScene*)item->scene();
if(!scene) if(!scene)
{ {
bool retCode = mActiveScene->deleteItem(item); mActiveScene->deleteItem(item);
} }
} }

@ -48,6 +48,7 @@ UBActionPalette::UBActionPalette(Qt::Corner corner, QWidget * parent, Qt::Orient
void UBActionPalette::init(Qt::Orientation orientation) void UBActionPalette::init(Qt::Orientation orientation)
{ {
Q_UNUSED(orientation);
m_customCloseProcessing = false; m_customCloseProcessing = false;
mButtonSize = QSize(32, 32); mButtonSize = QSize(32, 32);
@ -57,13 +58,6 @@ void UBActionPalette::init(Qt::Orientation orientation)
mToolButtonStyle = Qt::ToolButtonIconOnly; mToolButtonStyle = Qt::ToolButtonIconOnly;
mButtons.clear(); mButtons.clear();
QBoxLayout *layout = 0;
if (orientation == Qt::Horizontal)
layout = new QHBoxLayout(this);
else
layout = new QVBoxLayout(this);
updateLayout(); updateLayout();
} }

Loading…
Cancel
Save