コード例 #1
0
RectControl::RectControl()
    : m_point(new CoordinateControl(QLatin1String("+")))
    , m_size(new CoordinateControl(QLatin1String("x")))
{
    QHBoxLayout *l = new QHBoxLayout(this);
    l->setSpacing(0);
    l->setMargin(ControlLayoutMargin);
    connect(m_point, SIGNAL(pointValueChanged(QPoint)), this, SLOT(handleChanged()));
    connect(m_point, SIGNAL(pointValueChanged(QPoint)), this, SIGNAL(positionChanged(QPoint)));
    l->addWidget(m_point);
    l->addSpacerItem(new QSpacerItem(0, 0, QSizePolicy::MinimumExpanding, QSizePolicy::Ignored));
    connect(m_size, SIGNAL(sizeValueChanged(QSize)), this, SLOT(handleChanged()));
    connect(m_size, SIGNAL(sizeValueChanged(QSize)), this, SIGNAL(sizeChanged(QSize)));
    l->addWidget(m_size);
}
コード例 #2
0
ファイル: halsignal.cpp プロジェクト: ftkalcevic/QtQuickVcp
void HalSignal::setHandle(int arg)
{
    if (m_handle != arg) {
        m_handle = arg;
        emit handleChanged(arg);
    }
}
コード例 #3
0
ファイル: guiitem.cpp プロジェクト: kitizz/nutmeg
void GuiItem::setHandle(QString handle)
{
    if (m_handle == handle)
        return;

    m_handle = handle;
    emit handleChanged(handle);
}
コード例 #4
0
ファイル: accountmodel.cpp プロジェクト: CryptoHelp/pandacoin
SingleColumnAccountModel::SingleColumnAccountModel(AccountModel* parent,bool showBalances_,bool showAllAccounts_, QString hintText_)
: QAbstractTableModel()
, parentModel(parent)
, showBalances(showBalances_)
, showAllAccounts(showAllAccounts_)
, hintText(hintText_)
{
    connect(parent, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(handleChanged(QModelIndex,QModelIndex)));
}
コード例 #5
0
	void QRenderTargetSysBase::changeEvent(QEvent *Evt)
	{
		if (QEvent::ParentChange == Evt->type() && mDeviceContext != NULL)
		{
			ReleaseDC(handle(), mDeviceContext);
			mDeviceContext = 0;
			handleChanged();
		}

		QWidget::changeEvent(Evt);
	}
コード例 #6
0
ファイル: tabbar.cpp プロジェクト: victor-yacovlev/kumir2
void TabBar::tabRemoved(int index)
{
    QTabBar::tabRemoved(index);
    handleChanged(currentIndex());
}
コード例 #7
0
ファイル: tabbar.cpp プロジェクト: victor-yacovlev/kumir2
void TabBar::tabInserted(int index)
{
    QTabBar::tabInserted(index);
    handleChanged(currentIndex());
}