コード例 #1
0
ファイル: whatsthis.cpp プロジェクト: Hasimir/PySide
## packaging of self file.  Please review the following information to
## ensure the GNU Lesser General Public License version 2.1 requirements
## will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
##
## In addition, as a special exception, Nokia gives you certain
## additional rights. These rights are described in the Nokia Qt LGPL
## Exception version 1.0, included in the file LGPL_EXCEPTION.txt in self
## package.
##
## GNU General Public License Usage
## Alternatively, self file may be used under the terms of the GNU
## General Public License version 3.0 as published by the Free Software
## Foundation and appearing in the file LICENSE.GPL included in the
## packaging of self file.  Please review the following information to
## ensure the GNU General Public License version 3.0 requirements will be
## met: http://www.gnu.org/copyleft/gpl.html.
##
## If you are unsure which license is appropriate for your use, please
## contact the sales department at http://www.qtsoftware.com/contact.
## $QT_END_LICENSE$
##
############################################################################

//! [0]
    Act = QAction(tr("&New"), self)
    Act.setShortcut(tr("Ctrl+N"))
    Act.setStatusTip(QObject.tr("Create a new file"))
    Act.setWhatsThis(QObject.tr("Click self option to create a new file."))
//! [0]

コード例 #2
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "&Video Capture Settings..."));
     setStatusTip(QApplication::translate("UIActionPool", "Configure video capture settings"));
 }
コード例 #3
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "Take Sn&apshot..."));
     setStatusTip(QApplication::translate("UIActionPool", "Take a snapshot of the virtual machine"));
 }
コード例 #4
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "&Network Settings..."));
     setStatusTip(QApplication::translate("UIActionPool", "Change the settings of network adapters"));
 }
コード例 #5
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "R&emote Display"));
     setStatusTip(QApplication::translate("UIActionPool", "Toggle remote desktop (RDP) connections to this machine"));
 }
コード例 #6
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "Switch to &Scale Mode"));
     setStatusTip(QApplication::translate("UIActionPool", "Switch between normal and scale mode"));
 }
コード例 #7
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "&Adjust Window Size"));
     setStatusTip(QApplication::translate("UIActionPool", "Adjust window size and position to best fit the guest display"));
 }
コード例 #8
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "Session I&nformation..."));
     setStatusTip(QApplication::translate("UIActionPool", "Show Session Information Dialog"));
 }
コード例 #9
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "Disable &Mouse Integration"));
     setStatusTip(QApplication::translate("UIActionPool", "Temporarily disable host mouse pointer integration"));
 }
コード例 #10
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "&Insert Guest Additions CD image..."));
     setStatusTip(QApplication::translate("UIActionPool", "Insert the Guest Additions disk file into the virtual drive"));
 }
コード例 #11
0
ファイル: volumebutton.cpp プロジェクト: luigivieira/fun-sdk
// +-----------------------------------------------------------
void fsdk::VolumeButton::refreshUI()
{
	setToolTip(tr("Volume: %1%").arg(volume()));
	setStatusTip(tr("Sets the audio volume in this video window"));
}
コード例 #12
0
ファイル: tscoreclef.cpp プロジェクト: SeeLook/nootka
void TscoreClef::getStatusTip() {
    QString tip = "<b>" + m_clef.name() + "</b>  (" + m_clef.desc() + ")";
    if (!readOnly())
        tip += "<br>" + tr("Click to select another clef.");
    setStatusTip(tip);
}
コード例 #13
0
void Client::settaBriscola(QString br)
{
	QString briscola = ":mazzi/" + tipoMazzo + "/" + br + ".png";
	labelBr->setPixmap(briscola);
	setStatusTip("Briscola: " + br);
}
コード例 #14
0
ファイル: accidsettings.cpp プロジェクト: SeeLook/nootka
void accidSettings::updateStatusTip() {
  setStatusTip("<b>" + tr("Elements are disabled because appropriate types of questions or answers are not selected.") + "</b>");
}
コード例 #15
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "Switch to &Fullscreen"));
     setStatusTip(QApplication::translate("UIActionPool", "Switch between normal and fullscreen mode"));
 }
コード例 #16
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "Ins&ert Ctrl-Alt-Backspace"));
     setStatusTip(QApplication::translate("UIActionPool", "Send the Ctrl-Alt-Backspace sequence to the virtual machine"));
 }
コード例 #17
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "Switch to Seam&less Mode"));
     setStatusTip(QApplication::translate("UIActionPool", "Switch between normal and seamless desktop integration mode"));
 }
コード例 #18
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "&Pause"));
     setStatusTip(QApplication::translate("UIActionPool", "Suspend the execution of the virtual machine"));
 }
コード例 #19
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "Auto-resize &Guest Display"));
     setStatusTip(QApplication::translate("UIActionPool", "Automatically resize the guest display when the window is resized (requires Guest Additions)"));
 }
コード例 #20
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "&Reset"));
     setStatusTip(QApplication::translate("UIActionPool", "Reset the virtual machine"));
 }
コード例 #21
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "&Settings..."));
     setStatusTip(QApplication::translate("UIActionPool", "Manage the virtual machine settings"));
 }
コード例 #22
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "Save State"));
     setStatusTip(QApplication::translate("UIActionPool", "Save the machine state of the virtual machine"));
 }
コード例 #23
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "&Shared Folders Settings..."));
     setStatusTip(QApplication::translate("UIActionPool", "Create or modify shared folders"));
 }
コード例 #24
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "ACPI Sh&utdown"));
     setStatusTip(QApplication::translate("UIActionPool", "Send the ACPI Power Button press event to the virtual machine"));
 }
コード例 #25
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "&Video Capture"));
     setStatusTip(QApplication::translate("UIActionPool", "Toggle video capture"));
 }
コード例 #26
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "Po&wer Off"));
     setStatusTip(QApplication::translate("UIActionPool", "Power off the virtual machine"));
 }
コード例 #27
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "&Install Guest Additions..."));
     setStatusTip(QApplication::translate("UIActionPool", "Mount the Guest Additions installation image"));
 }
コード例 #28
0
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "&Close..."));
     setStatusTip(QApplication::translate("UIActionPool", "Close the virtual machine"));
 }
コード例 #29
0
QHardwareWidget::QHardwareWidget(QWidget* pParent) :
	QGroupBox(pParent),
	m_MainLayout(),
	m_Devices(),
	m_OptimalDevice()
{
	setTitle("Hardware Selection");
	setStatusTip("Hardware Selection");
	setToolTip("Hardware Selection");

	m_MainLayout.setColumnMinimumWidth(0, 75);
	setLayout(&m_MainLayout);

	int DriverVersion = 0, RuntimeVersion = 0; 

	cudaDriverGetVersion(&DriverVersion);
	cudaRuntimeGetVersion(&RuntimeVersion);

	QString DriverVersionString		= QString::number(DriverVersion / 1000) + "." + QString::number(DriverVersion % 100);
	QString RuntimeVersionString	= QString::number(RuntimeVersion / 1000) + "." + QString::number(RuntimeVersion % 100);

	gStatus.SetStatisticChanged("Graphics Card", "CUDA Driver Version", DriverVersionString);
	gStatus.SetStatisticChanged("Graphics Card", "CUDA Runtime Version", RuntimeVersionString);

	QString VersionInfo;

	VersionInfo += "CUDA Driver Version: " + DriverVersionString;
	VersionInfo += ", CUDA Runtime Version: " + RuntimeVersionString;

	m_MainLayout.addWidget(new QLabel(VersionInfo), 0, 0, 1, 2);
	
	m_MainLayout.addWidget(&m_Devices, 1, 0, 1, 2);

	m_Model.EnumerateDevices();

	m_Devices.horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents);
	m_Devices.horizontalHeader()->setStretchLastSection(true); 
	m_Devices.horizontalHeader()->setDefaultSectionSize(1);
	m_Devices.horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
	m_Devices.horizontalHeader()->setHighlightSections(false);
	m_Devices.verticalHeader()->setVisible(false);
	m_Devices.verticalHeader()->setDefaultSectionSize(20);
	m_Devices.setSelectionMode(QAbstractItemView::SingleSelection);
	m_Devices.setSelectionBehavior(QAbstractItemView::SelectRows);
	m_Devices.setFixedHeight(75);

	m_Devices.setModel(&m_Model);

	m_OptimalDevice.setText("Optimal Device");
	m_OptimalDevice.setToolTip("Optimal Device");
	m_OptimalDevice.setStatusTip("Choose the most optimal device for rendering");
	m_OptimalDevice.setFixedWidth(90);
	m_OptimalDevice.setVisible(m_Model.rowCount(QModelIndex()) > 1);

	m_MainLayout.addWidget(&m_OptimalDevice);
	
	QObject::connect(&m_OptimalDevice, SIGNAL(clicked()), this, SLOT(OnOptimalDevice()));
	QObject::connect(&m_Devices, SIGNAL(clicked(const QModelIndex&)), this, SLOT(OnSelection(const QModelIndex&)));

	OnOptimalDevice();
}
コード例 #30
0
ファイル: UIActionPoolSelector.cpp プロジェクト: ryenus/vbox
 void retranslateUi()
 {
     setName(QApplication::translate("UIActionPool", "Sort"));
     setStatusTip(QApplication::translate("UIActionPool", "Sort the group of the first selected machine alphabetically"));
 }