mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 00:30:53 +01:00
Fixed narrowing warning qsizetype -> int
This commit is contained in:
@@ -639,7 +639,7 @@ bool TerminalStrip::isBridgeable(const QVector<QSharedPointer<RealTerminal>> &re
|
|||||||
// Get the physical terminal and pos
|
// Get the physical terminal and pos
|
||||||
auto first_physical_terminal = first_real_terminal->physicalTerminal();
|
auto first_physical_terminal = first_real_terminal->physicalTerminal();
|
||||||
QVector<shared_physical_terminal> physical_vector{first_physical_terminal};
|
QVector<shared_physical_terminal> physical_vector{first_physical_terminal};
|
||||||
QVector<int> pos_vector{m_physical_terminals.indexOf(first_physical_terminal)};
|
QVector<qsizetype> pos_vector{m_physical_terminals.indexOf(first_physical_terminal)};
|
||||||
|
|
||||||
auto bridge_ = isBridged(first_real_terminal);
|
auto bridge_ = isBridged(first_real_terminal);
|
||||||
//bool to know at the end of this function if at least one terminal is not bridged
|
//bool to know at the end of this function if at least one terminal is not bridged
|
||||||
|
|||||||
@@ -746,7 +746,7 @@ void ElementScene::addItems(QVector<QGraphicsItem *> items)
|
|||||||
*/
|
*/
|
||||||
void ElementScene::removeItems(QVector<QGraphicsItem *> items)
|
void ElementScene::removeItems(QVector<QGraphicsItem *> items)
|
||||||
{
|
{
|
||||||
const int previous_selected_count{selectedItems().size()};
|
const qsizetype previous_selected_count{selectedItems().size()};
|
||||||
|
|
||||||
//block signal to avoid multiple emit of selection changed,
|
//block signal to avoid multiple emit of selection changed,
|
||||||
//we emit this signal only once at the end of this function.
|
//we emit this signal only once at the end of this function.
|
||||||
|
|||||||
Reference in New Issue
Block a user