mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0027127: Implementation of compilation of OCCT Products samples on all platforms under support in Jenkins test system.
Update mfc samples for current state of OCCT Removing vc8 and vc9 from environment Update qt samples for compilation with QT5 Update OCCT qt pro files system Removing from projects files FWOSPlugin.lib.
This commit is contained in:
@@ -200,7 +200,7 @@ void GraphWidget::drawBackground(QPainter *painter, const QRectF &rect)
|
||||
QLinearGradient gradient(sceneRect.topLeft(), sceneRect.bottomRight());
|
||||
gradient.setColorAt(0, Qt::white);
|
||||
gradient.setColorAt(1, Qt::lightGray);
|
||||
painter->fillRect(rect.intersect(sceneRect), gradient);
|
||||
painter->fillRect(rect.intersected(sceneRect), gradient);
|
||||
painter->setBrush(Qt::NoBrush);
|
||||
painter->drawRect(sceneRect);
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@
|
||||
#ifndef GRAPHWIDGET_H
|
||||
#define GRAPHWIDGET_H
|
||||
|
||||
#include <QtGui/QGraphicsView>
|
||||
#include <QGraphicsView>
|
||||
|
||||
#include "FThread.h"
|
||||
|
||||
|
@@ -20,6 +20,10 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtGlobal>
|
||||
#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
|
||||
#include <QtWidgets>
|
||||
#endif
|
||||
|
||||
#include "mainwindow.h"
|
||||
#include "graphwidget.h"
|
||||
@@ -192,7 +196,7 @@ void MainWindow::compute()
|
||||
void MainWindow::nbThreads()
|
||||
{
|
||||
bool ok;
|
||||
int nb = QInputDialog::getInteger(this, tr("Number of threads"), tr("(1 - 4): "),
|
||||
int nb = QInputDialog::getInt(this, tr("Number of threads"), tr("(1 - 4): "),
|
||||
graph->getNbThreads(), 1, 4, 1, &ok);
|
||||
if (ok)
|
||||
graph->setNbThreads(nb);
|
||||
|
Reference in New Issue
Block a user