• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ setupConnections函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中setupConnections函数的典型用法代码示例。如果您正苦于以下问题:C++ setupConnections函数的具体用法?C++ setupConnections怎么用?C++ setupConnections使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了setupConnections函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: setup

void
setup(GtkWidget *widget)
{
    GtkWidgetProps props(widget);
    if (widget && GTK_IS_SCROLLED_WINDOW(widget) &&
        !props->scrolledWindowHacked) {
        GtkScrolledWindow *scrolledWindow = GTK_SCROLLED_WINDOW(widget);
        GtkWidget *child;

        if ((child = gtk_scrolled_window_get_hscrollbar(scrolledWindow))) {
            setupConnections(child, widget);
        }
        if ((child = gtk_scrolled_window_get_vscrollbar(scrolledWindow))) {
            setupConnections(child, widget);
        }
        if ((child = gtk_bin_get_child(GTK_BIN(widget)))) {
            if (GTK_IS_TREE_VIEW(child) || GTK_IS_TEXT_VIEW(child) ||
                GTK_IS_ICON_VIEW(child)) {
                setupConnections(child, widget);
            } else if (oneOf(gTypeName(child), "ExoIconView",
                             "FMIconContainer")) {
                setupConnections(child, widget);
            }
        }
        props->scrolledWindowHacked = true;
    }
}
开发者ID:KDE,项目名称:qtcurve,代码行数:27,代码来源:scrolledwindow.cpp


示例2: setupConnections

    void ChainLink::setupCommunication(const KoFilter *const parentFilter) const
    {
        if (!parentFilter)
            return;

        const QMetaObject *const parent = parentFilter->metaObject();
        const QMetaObject *const child = m_filter->metaObject();
        if (!parent || !child)
            return;

        setupConnections(parentFilter, m_filter);
        setupConnections(m_filter, parentFilter);
    }
开发者ID:KDE,项目名称:koffice,代码行数:13,代码来源:KoFilterChainLink.cpp


示例3: QMainWindow

Kaqtoos::Kaqtoos()
	: QMainWindow(),
	  downloadManager(this),
	  isOAuthUserConnected(false)
{
	oauthRequest = new KQOAuthRequest();
	oauthManager = new KQOAuthManager(this);

	setupUi();
	setupActions();
	setupConnections();
	
	publicXmlUrls <<
		QString("http://api.kactoos.com/br/api/products/get-product-list/format/xml/oauth_consumer_key/%1/limit/30/orderby/new-products").arg(consumerKey) <<
		QString("http://api.kactoos.com/br/api/products/get-product-list/format/xml/oauth_consumer_key/%1/limit/30/orderby/popular").arg(consumerKey) <<
		QString("http://api.kactoos.com/br/api/products/get-product-list/format/xml/oauth_consumer_key/%1/limit/30/orderby/economic").arg(consumerKey);

	// start downloading
	downloadManager.append(publicXmlUrls);

	// NOTE: just for test
	QGraphicsScene *scene = new QGraphicsScene();

	ProductItem *item = new ProductItem();
	item->setImage("http://www.kactoos.com/libraries/thumb/?src=/images/products/5791_3556942391.jpg");
	
	scene->addItem(item);
	allProductsView->setScene(scene);

	setWindowTitle(tr("KaQToos"));
	resize(QSize(600, 480));
}
开发者ID:ftonello,项目名称:KaQToos,代码行数:32,代码来源:kaqtoos.cpp


示例4: QObject

Receiver::Receiver(int rx)
	: QObject()
	, set(Settings::instance())
	, m_filterMode(set->getCurrentFilterMode())
	, m_stopped(false)
	, m_receiver(rx)
	, m_samplerate(set->getSampleRate())
	, m_audioMode(1)
	//, m_calOffset(63.0)
	//, m_calOffset(33.0)
{
	setReceiverData(set->getReceiverDataList().at(m_receiver));

	InitCPX(inBuf, BUFFER_SIZE, 0.0f);
	InitCPX(outBuf, BUFFER_SIZE, 0.0f);

	newSpectrum.resize(BUFFER_SIZE*4);

	qtdsp = 0;

	setupConnections();

	highResTimer = new HResTimer();
	m_displayTime = (int)(1000000.0/set->getFramesPerSecond(m_receiver));

	m_smeterTime.start();
}
开发者ID:amontefusco,项目名称:cudaSDR,代码行数:27,代码来源:cusdr_receiver.cpp


示例5: DetailsUiControl

StylesUiControl::StylesUiControl(QWidget *p, FormatOptions *f,
                                 QObject *parent) :
    DetailsUiControl(p, f, parent)
{
    setupUi();
    setupConnections();
}
开发者ID:amilaperera,项目名称:clang-format-gui,代码行数:7,代码来源:StylesUiControl.cpp


示例6: QMainWindow

MainWindow::MainWindow(QWidget* parent) :
  QMainWindow(parent),
  ui(new Ui::MainWindow),
  scene(new Scene(config))
{
  ui->setupUi(this);

  ui->actionNew->setShortcut(QKeySequence::New);
  ui->actionSave->setShortcut(QKeySequence::Save);
  ui->actionQuit->setShortcut(QKeySequence::Quit);

  ui->sourceWidget->setupObjects("source", config.get_default_objects());
  ui->destinationWidget->setupObjects("destination", config.get_default_objects());
  ui->filterWidget->setupObjects("filter", config.get_default_objects());
  ui->templateWidget->setupObjects("template", config.get_default_objects());
  ui->rewriteWidget->setupObjects("rewrite", config.get_default_objects());
  ui->parserWidget->setupObjects("parser", config.get_default_objects());

  ui->sceneScrollArea->setWidget(scene);

  setupConnections();

  ui->actionLogStatement->trigger();  // the Scene widget has a LogStatement by default
  last_saved_config = QString::fromStdString(config.to_string());  // empty config contains version information
}
开发者ID:mamenyaka,项目名称:syslog-ng-config-qt,代码行数:25,代码来源:mainwindow.cpp


示例7: QPushButton

BookmarksWindow::BookmarksWindow()
{
	bookmarksTreeWidget = new QTreeWidget;
	addButton = new QPushButton(tr("Add"));
	closeButton = new QPushButton(tr("Close"));
	loadButton = new QPushButton(tr("Load"));
	saveButton = new QPushButton(tr("Save"));
	removeButton = new QPushButton(tr("Remove"));
	openButton = new QPushButton(tr("Open"));
	buttonsLayout = new QHBoxLayout;
	mainLayout = new QVBoxLayout;
	addBookmarkWindow = new AddBookmarkWindow;
	QTreeWidgetItem *item = new QTreeWidgetItem;
	item->setText(0, tr("Title"));
	item->setText(1,tr("Url"));
	bookmarksTreeWidget->setHeaderItem(item);
	buttonsLayout->addWidget(loadButton);
	buttonsLayout->addWidget(saveButton);
	buttonsLayout->addWidget(addButton);
	buttonsLayout->addWidget(removeButton);
	buttonsLayout->addWidget(openButton);
	buttonsLayout->addWidget(closeButton);
	mainLayout->addWidget(bookmarksTreeWidget);
	mainLayout->addLayout(buttonsLayout);
	mainLayout->setContentsMargins(5,25,5,5);
	setLayout(mainLayout);
        setTitle(tr("WebRender Bookmarks"));
	setupConnections();
}
开发者ID:JHooverman,项目名称:WebRender-1.0,代码行数:29,代码来源:bookmarkswindow.cpp


示例8: QDialog

/** Creates a new VolumeGroupDialog
    @param parent pointer to the parent widget
    @param vgName Volume Group name
    @param pvList List of LVM Physical Volumes used to create Volume Group
*/
VolumeGroupDialog::VolumeGroupDialog(QWidget* parent, QString& vgName, QStringList& pvList) :
    QDialog(parent),
    m_DialogWidget(new VolumeGroupWidget(this)),
    m_TargetName(vgName),
    m_TargetPVList(pvList),
    m_IsValidSize(false),
    m_IsValidName(true),
    m_TotalSize(0),
    m_TotalUsedSize(0),
    m_ExtentSize(0)
{
    mainLayout = new QVBoxLayout(this);
    setLayout(mainLayout);
    mainLayout->addWidget(&dialogWidget());

    dialogButtonBox = new QDialogButtonBox;
    okButton = dialogButtonBox->addButton(QDialogButtonBox::Ok);
    cancelButton = dialogButtonBox->addButton(QDialogButtonBox::Cancel);
    mainLayout->addWidget(dialogButtonBox);

    cancelButton->setFocus();
    cancelButton->setDefault(true);

    setupDialog();
    setupConstraints();
    setupConnections();
}
开发者ID:tctara,项目名称:partitionmanager,代码行数:32,代码来源:volumegroupdialog.cpp


示例9: addTimer

void AbstractNetworkJob::adoptRequest(QNetworkReply *reply)
{
    addTimer(reply);
    setReply(reply);
    setupConnections(reply);
    newReplyHook(reply);
}
开发者ID:uniblockchain,项目名称:client,代码行数:7,代码来源:abstractnetworkjob.cpp


示例10: setupOnlineCheck

PreferencesDialog::PreferencesDialog(QWidget *parent)
  : QDialog{parent}
  , ui{new Ui::PreferencesDialog}
  , m_cfg{Util::Settings::get()}
{
  ui->setupUi(this);

  // GUI page
  setupOnlineCheck();
  setupInterfaceLanguage();
  setupJobsJobOutput();
  setupCommonLanguages();
  setupCommonCountries();
  setupCommonCharacterSets();

  // Merge page
  ui->cbMAutoSetFileTitle->setChecked(m_cfg.m_autoSetFileTitle);
  ui->cbMSetAudioDelayFromFileName->setChecked(m_cfg.m_setAudioDelayFromFileName);
  Util::setupLanguageComboBox(*ui->cbMDefaultTrackLanguage, m_cfg.m_defaultTrackLanguage);
  Util::setupCharacterSetComboBox(*ui->cbMDefaultSubtitleCharset, m_cfg.m_defaultSubtitleCharset);

  setupProcessPriority();
  setupPlaylistScanningPolicy();
  setupOutputFileNamePolicy();

  // Chapter editor page
  Util::setupLanguageComboBox(*ui->cbCEDefaultLanguage, m_cfg.m_defaultChapterLanguage);
  Util::setupCountryComboBox(*ui->cbCEDefaultCountry, m_cfg.m_defaultChapterCountry, true, QY("– no selection by default –"));

  // Force scroll bars on combo boxes with a high number of entries.
  ui->cbMDefaultSubtitleCharset->view()->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
  ui->cbCEDefaultCountry       ->view()->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);

  setupConnections();
}
开发者ID:autoscatto,项目名称:mkvtoolnix,代码行数:35,代码来源:preferences_dialog.cpp


示例11: setupUi

MainMenu::MainMenu(QWidget *parent) 
{
	QString menuFile ;

	menuFile = ROOTMENU_PREFIX ;
	menuFile.append(ROOTMENU_POSTFIX) ;

	setupUi(this); 

	model = new FileBasedMenuModel(this);
	model->loadFromFile(menuFile);
	logoLabel->setVisible(true);
	titleLabel->setVisible(false);

	listView->setModel(model);
	listView->setFocus();
	listView->setCurrentIndex(model->index(0,0));

	setupConnections();

	contextMenu = new QMenu(this);
	QFont myfont = font();
	myfont.setPointSize(20);
	contextMenu->setFont(myfont);

	QAction *rebootAction = new QAction(tr("System Reboot"),this);
	connect(rebootAction,SIGNAL(triggered()),this,SLOT(onRebootAction()));
	contextMenu->addAction(rebootAction);
}
开发者ID:neuros,项目名称:app-mainmenu,代码行数:29,代码来源:mainmenu.cpp


示例12: getRequest

void DetermineAuthTypeJob::start()
{
    QNetworkReply *reply = getRequest(account()->davPath());
    setReply(reply);
    setupConnections(reply);
    AbstractNetworkJob::start();
}
开发者ID:AppSync1024,项目名称:client,代码行数:7,代码来源:owncloudsetupwizard.cpp


示例13: VariableListener

	ThymioVPLStandalone::ThymioVPLStandalone(QVector<QTranslator*> translators, const QString& commandLineTarget, bool useAnyTarget, bool debugLog, bool execFeedback):
		VariableListener(new TargetVariablesModel(this)),
		// create target
		target(new DashelTarget(translators, commandLineTarget)),
		// options
		useAnyTarget(useAnyTarget),
		debugLog(debugLog),
		execFeedback(execFeedback),
		// setup initial values
		id(0),
		vpl(0),
		allocatedVariablesCount(0),
		getDescriptionTimer(0)
	{
		subscribeToVariableOfInterest(ASEBA_PID_VAR_NAME);
		
		// create gui
		setupWidgets();
		setupConnections();
		
		// when everything is ready, get description
		target->broadcastGetDescription();
		
		// resize if not android
		#ifndef ANDROID
		resize(1000,700);
		#endif // ANDROID
	}
开发者ID:benzonico,项目名称:aseba,代码行数:28,代码来源:ThymioVPLStandalone.cpp


示例14: QSortFilterProxyModel

UProcessView::UProcessView(QWidget *parent /*= 0*/)
:QTableView(parent)
,killProcessAction_(0)
,selectColumnAction_(0)
{
    //设置Model。
    QSortFilterProxyModel *proxyModel = new QSortFilterProxyModel(this);
    UProcessModel *processModel = new UProcessModel(this);
    connect(this,SIGNAL(processTerminated(unsigned int)),processModel,SLOT(refresh()));

    proxyModel->setSourceModel(processModel);
    proxyModel->setDynamicSortFilter(true);
    proxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
    setModel(proxyModel);
    setSortingEnabled(true);
    
    setSelectionBehavior(QAbstractItemView::SelectRows);
    horizontalHeader()->setStretchLastSection(true);
    verticalHeader()->hide();
    setSelectionMode(QAbstractItemView::SingleSelection);

    setContextMenuPolicy(Qt::ActionsContextMenu);
    setupActions();

    setupConnections();
}
开发者ID:gauldoth,项目名称:UniCore,代码行数:26,代码来源:UProcessView.cpp


示例15: xml

void RequestEtagJob::start()
{
    QNetworkRequest req;
    // Let's always request all entries inside a directory. There are/were bugs in the server
    // where a root or root-folder ETag is not updated when its contents change. We work around
    // this by concatenating the ETags of the root and its contents.
    req.setRawHeader("Depth", "1");
    // See https://github.com/owncloud/core/issues/5255 and others

    QByteArray xml("<?xml version=\"1.0\" ?>\n"
                   "<d:propfind xmlns:d=\"DAV:\">\n"
                   "  <d:prop>\n"
                   "    <d:getetag/>\n"
                   "  </d:prop>\n"
                   "</d:propfind>\n");
    QBuffer *buf = new QBuffer(this);
    buf->setData(xml);
    buf->open(QIODevice::ReadOnly);
    // assumes ownership
    setReply(davRequest("PROPFIND", path(), req, buf));
    buf->setParent(reply());
    setupConnections(reply());

    if( reply()->error() != QNetworkReply::NoError ) {
        qDebug() << "getting etag: request network error: " << reply()->errorString();
    }
    AbstractNetworkJob::start();
}
开发者ID:alanljj,项目名称:client,代码行数:28,代码来源:networkjobs.cpp


示例16: xml

void RequestEtagJob::start()
{
    QNetworkRequest req;
    if (path().isEmpty() || path() == QLatin1String("/")) {
        /* For the root directory, we need to query the etags of all the sub directories
         * because, at the time I am writing this comment (Owncloud 5.0.9), the etag of the
         * root directory is not updated when the sub directories changes */
        req.setRawHeader("Depth", "1");
    } else {
        req.setRawHeader("Depth", "0");
    }
    QByteArray xml("<?xml version=\"1.0\" ?>\n"
                   "<d:propfind xmlns:d=\"DAV:\">\n"
                   "  <d:prop>\n"
                   "    <d:getetag/>\n"
                   "  </d:prop>\n"
                   "</d:propfind>\n");
    QBuffer *buf = new QBuffer(this);
    buf->setData(xml);
    buf->open(QIODevice::ReadOnly);
    // assumes ownership
    setReply(davRequest("PROPFIND", path(), req, buf));
    buf->setParent(reply());
    setupConnections(reply());

    if( reply()->error() != QNetworkReply::NoError ) {
        qDebug() << "getting etag: request network error: " << reply()->errorString();
    }
    AbstractNetworkJob::start();
}
开发者ID:Gallaecio,项目名称:vaiven,代码行数:30,代码来源:networkjobs.cpp


示例17: QWidget

WebBrowser::WebBrowser(QWidget *parent) :
    QWidget(parent)
{
    web_ = new QWebView;
    address_ = new QLineEdit;
    refresh_ = new QToolButton;
    back_ = new QToolButton;
    forward_ = new QToolButton;
    home_ = new QToolButton;
    layout_ = new QGridLayout;
    refresh_->setIcon(QIcon(QPixmap(":/icons/resources/refresh.png")));
    back_->setIcon(QIcon(QPixmap(":/icons/resources/go-previous.png")));
    forward_->setIcon(QIcon(QPixmap(":/icons/resources/go-next.png")));
    home_->setIcon(QIcon(QPixmap(":/icons/resources/go-home.png")));
    layout_->addWidget(back_,0,0,1,1);
    layout_->addWidget(forward_,0,1,1,1);
    layout_->addWidget(home_,0,2,1,1);
    layout_->addWidget(refresh_,0,3,1,1);
    layout_->addWidget(address_,0,4,1,1);
    layout_->addWidget(web_,1,0,1,5);
    homepage_="http://duckduckgo.com";
    address_->setText(homepage_);
    web_->load(homepage_);
    setLayout(layout_);
    setupConnections();
}
开发者ID:Manwelanza,项目名称:QT-navegador,代码行数:26,代码来源:webbrowser.cpp


示例18: getRequest

void ValidateDavAuthJob::start()
{
    QNetworkReply *reply = getRequest(Account::davPath());
    setReply(reply);
    setupConnections(reply);
    AbstractNetworkJob::start();
}
开发者ID:Gnostech,项目名称:mirall,代码行数:7,代码来源:owncloudsetupwizard.cpp


示例19: QTabWidget

TransmitTabWidget::TransmitTabWidget(QWidget *parent)
	: QTabWidget(parent)
	, set(Settings::instance())
	, m_minimumWidgetWidth(set->getMinimumWidgetWidth())
	, m_minimumGroupBoxWidth(set->getMinimumGroupBoxWidth())
{
	setStyleSheet(set->getTabWidgetStyle());
	//setMinimumWidth(m_minimumWidgetWidth);
	//setMaximumWidth (247);
	setContentsMargins(4, 4, 4, 0);
	setMouseTracking(true);
	
	m_transmitOptionsWidget = new TransmitOptionsWidget(this);
	m_transmitPAWidget = new TransmitPAWidget(this);

	this->addTab(m_transmitOptionsWidget, "Options");
	this->addTab(m_transmitPAWidget, "PA Settings");

	if (!set->getPenelopePresence() && !set->getPennyLanePresence() && !QSDR::Hermes) {

		setTabEnabled(1, false);
//		setTabEnabled(2, false);
//		setTabEnabled(3, false);
	}

//	if (!set->getAlexPresence())
//		setTabEnabled(4, false);

	setupConnections();
}
开发者ID:dtheriault,项目名称:hydra,代码行数:30,代码来源:cusdr_transmitTabWidget.cpp


示例20: reply

bool DetermineAuthTypeJob::finished()
{
    QUrl redirection = reply()->attribute(QNetworkRequest::RedirectionTargetAttribute).toUrl();
    qDebug() << Q_FUNC_INFO << redirection.toString();
    if (_redirects >= maxRedirects()) {
        redirection.clear();
    }
    if ((reply()->error() == QNetworkReply::AuthenticationRequiredError) || redirection.isEmpty()) {
        emit authType(WizardCommon::HttpCreds);
    } else if (redirection.toString().endsWith(account()->davPath())) {
        // do a new run
        _redirects++;
        resetTimeout();
        setReply(getRequest(redirection));
        setupConnections(reply());
        return false; // don't discard
    } else {
        QRegExp shibbolethyWords("SAML|wayf");

        shibbolethyWords.setCaseSensitivity(Qt::CaseInsensitive);
        if (redirection.toString().contains(shibbolethyWords)) {
            emit authType(WizardCommon::Shibboleth);
        } else {
            // TODO: Send an error.
            // eh?
            emit authType(WizardCommon::HttpCreds);
        }
    }
    return true;
}
开发者ID:AppSync1024,项目名称:client,代码行数:30,代码来源:owncloudsetupwizard.cpp



注:本文中的setupConnections函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ setupDataBase函数代码示例发布时间:2022-05-30
下一篇:
C++ setupCamera函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap