Removed a bunch of harmless warnings

This commit is contained in:
Paolo Cignoni cignoni 2012-12-02 15:08:31 +00:00
parent be30ae7a30
commit 39ff26f428
5 changed files with 6 additions and 10 deletions

View File

@ -356,7 +356,6 @@ void MLScriptEditor::lineNumberAreaPaintEvent( QPaintEvent *event,const QColor&
QPainter painter(narea);
painter.fillRect(event->rect(),col);
QTextBlock block = firstVisibleBlock();
int indent = block.blockFormat().indent();
int blockNumber = block.blockNumber();
int top = (int) blockBoundingGeometry(block).translated(contentOffset()).top();
int bottom = top + (int) blockBoundingRect(block).height();
@ -900,7 +899,7 @@ void SearchMenu::clearResults()
void SearchMenu::setLineEditFocus()
{
searchline->setFocus();
const QList<QAction*>& acts = actions();
// const QList<QAction*>& acts = actions();
//if (acts.size() > 1 && acts[1] != NULL)
// setActiveAction(acts[1]);
}

View File

@ -457,8 +457,7 @@ void GLArea::paintEvent(QPaintEvent */*event*/)
if (takeSnapTile) pasteTile();
// Finally display HELP if requested
if (isHelpVisible())
displayHelp(&painter);
if (isHelpVisible()) displayHelp();
// Draw the log area background
// on the bottom of the glArea
@ -680,7 +679,7 @@ void GLArea::displayViewerHighlight()
}
void GLArea::displayHelp(QPainter *painter)
void GLArea::displayHelp()
{
static QString tableText;
if(tableText.isEmpty())
@ -762,7 +761,6 @@ void GLArea::updateAllPerMeshDecorators()
QMap<int, QList<QAction *> >::iterator i;
for ( i = iPerMeshDecoratorsListMap.begin(); i != iPerMeshDecoratorsListMap.end(); ++i )
{
MeshModel * mm = md()->getMesh(i.key());
QList<QAction *> &iDecoratorsList = i.value();
foreach(QAction *p , iDecoratorsList)
{

View File

@ -263,7 +263,7 @@ protected:
void displayMatrix(QPainter *painter, QRect areaRect);
void displayViewerHighlight();
void displayHelp(QPainter *painter);
void displayHelp();
QString GetMeshInfoString();
void paintEvent(QPaintEvent *event);

View File

@ -46,7 +46,7 @@
QProgressBar *MainWindow::qb;
MainWindow::MainWindow()
:wama(),xmlfiltertimer()
:xmlfiltertimer(),wama()
{
//xmlfiltertimer will be called repeatedly, so like Qt documentation suggests, the first time start function should be called.
//Subsequently restart function will be invoked.
@ -672,7 +672,6 @@ void MainWindow::initSearchEngine()
void MainWindow::initMenuForSearching(QMenu* menu)
{
int actwidth = 0;
if (menu == NULL)
return;
const QList<QAction*>& acts = menu->actions();

View File

@ -83,7 +83,7 @@ public:
QList<QAction *> actions () const {return actionList;}
bool startDecorate(QAction * /*mode*/, MeshDocument &/*m*/, RichParameterSet * /*parent*/ par, GLArea * /*parent*/);
void decorateMesh(QAction *a, MeshModel &m, RichParameterSet *, GLArea *gla, QPainter *p, GLLogStream &){}
void decorateMesh(QAction *, MeshModel &, RichParameterSet *, GLArea *, QPainter *, GLLogStream &){}
void decorateDoc(QAction *a, MeshDocument &m, RichParameterSet *, GLArea *gla, QPainter *p, GLLogStream &);
void initGlobalParameterSet(QAction *, RichParameterSet & globalparam);
int getDecorationClass(QAction */*action*/) const { return MeshDecorateInterface::PerDocument; }