Commit ee2bd803 authored by Claudio Valerio's avatar Claudio Valerio

removed some other warning

parent ad6f1ea6
......@@ -1184,7 +1184,6 @@ void UBBoardController::ClearUndoStack()
{
QSet<QGraphicsItem*> uniqueItems;
// go through all stack command
int count = UBApplication::undoStack->count();
for(int i = 0; i < UBApplication::undoStack->count(); i++)
{
......@@ -1214,7 +1213,6 @@ void UBBoardController::ClearUndoStack()
// clear stack, and command list
UBApplication::undoStack->clear();
count = UBApplication::undoStack->count();
// go through all unique items, and check, ot on scene, or not.
// if not on scene, than item can be deleted
......@@ -1226,7 +1224,7 @@ void UBBoardController::ClearUndoStack()
UBGraphicsScene *scene = (UBGraphicsScene*)item->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)
{
Q_UNUSED(orientation);
m_customCloseProcessing = false;
mButtonSize = QSize(32, 32);
......@@ -57,13 +58,6 @@ void UBActionPalette::init(Qt::Orientation orientation)
mToolButtonStyle = Qt::ToolButtonIconOnly;
mButtons.clear();
QBoxLayout *layout = 0;
if (orientation == Qt::Horizontal)
layout = new QHBoxLayout(this);
else
layout = new QVBoxLayout(this);
updateLayout();
}
......
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