本文整理汇总了C++中ColorList::keys方法的典型用法代码示例。如果您正苦于以下问题:C++ ColorList::keys方法的具体用法?C++ ColorList::keys怎么用?C++ ColorList::keys使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ColorList
的用法示例。
在下文中一共展示了ColorList::keys方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QDialog
PPreview::PPreview( QWidget* parent, ScribusView *vin, ScribusDoc *docu, QString printer, PrintEngine engine ) : QDialog( parent )
{
setModal(true);
setWindowIcon(QIcon(loadIcon ( "AppIcon.png" )));
Q_ASSERT(!docu->masterPageMode());
prefsManager=PrefsManager::instance();
QString tmp;
postscriptPreview = usePostscriptPreview(printer, engine);
QString caption = tr("Print Preview");
#ifdef _WIN32
if (postscriptPreview)
caption += " (PostScript)";
else
caption += " (GDI)";
#endif
setWindowTitle( caption );
doc = docu;
view = vin;
HavePngAlpha = ScCore->havePNGAlpha();
HaveTiffSep = postscriptPreview ? ScCore->haveTIFFSep() : false;
APage = -1;
CMode = false;
GsAl = false;
Trans = false;
GMode = true;
mHor = false;
mVer = false;
fClip = false;
fSpot = true;
fGray = false;
fICC = false;
scaleFactor = 1.0;
SMode = 1;
getNumericGSVersion(GsMajor, GsMinor);
PLayout = new QVBoxLayout(this);
PLayout->setMargin(0);
PLayout->setSpacing(0);
int tbWidth = 0;
Layout5 = new QHBoxLayout;
Layout5->setSpacing(3);
Layout5->setMargin(0);
Anzeige = new QScrollArea(this);
Anzeige->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
Layout5->addWidget(Anzeige);
settingsBarLayout = new QVBoxLayout;
settingsBarLayout->setSpacing(3);
settingsBarLayout->setMargin(0);
devTitle = new QGroupBox( this );
devTitle->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
devTitle->setTitle( tr( "Display Settings" ) );
Layout2 = new QVBoxLayout( devTitle );
Layout2->setSpacing(5);
Layout2->setMargin(5);
Layout2->setAlignment( Qt::AlignTop );
AntiAlias = new QCheckBox(devTitle);
AntiAlias->setText( tr("Enable &Antialiasing"));
AntiAlias->setChecked( postscriptPreview ? prefsManager->appPrefs.PrPr_AntiAliasing : false);
AntiAlias->setEnabled( postscriptPreview );
Layout2->addWidget(AntiAlias);
AliasTr = new QCheckBox(devTitle);
AliasTr->setText( tr("Display Trans&parency"));
AliasTr->setChecked(prefsManager->appPrefs.PrPr_Transparency);
AliasTr->setEnabled( postscriptPreview );
Layout2->addWidget(AliasTr);
EnableCMYK = new QCheckBox(devTitle);
EnableCMYK->setText( tr("&Display CMYK"));
EnableCMYK->setChecked( postscriptPreview ? prefsManager->appPrefs.PrPr_Mode : false);
EnableCMYK->setEnabled( postscriptPreview );
Layout2->addWidget(EnableCMYK);
if (HaveTiffSep)
{
ColorList usedSpots;
doc->getUsedColors(usedSpots, true);
QStringList spots = usedSpots.keys();
Table = new QTableWidget(spots.count()+4, 2, devTitle );
inkMax = (spots.count()+4) * 255;
Table->setHorizontalHeaderItem(0, new QTableWidgetItem(QIcon(loadIcon("16/show-object.png")), ""));
Table->setHorizontalHeaderItem(1, new QTableWidgetItem( tr("Separation Name")));
QHeaderView *header = Table->horizontalHeader();
header->setStretchLastSection(true);
header->setMovable(false);
// header->setClickable(false);
header->setResizeMode(QHeaderView::Fixed);
Table->setColumnWidth(0, 24);
Table->verticalHeader()->hide();
Table->setSelectionMode( QAbstractItemView::NoSelection );
Table->setEditTriggers(QAbstractItemView::NoEditTriggers);
Table->setFocusPolicy(Qt::NoFocus);
flagsVisible.clear();
Table->setItem(0, 1, new QTableWidgetItem( tr("Cyan")));
QCheckBox *cp = new QCheckBox(this);
cp->setFocusPolicy(Qt::NoFocus);
connect(cp, SIGNAL(clicked()), this, SLOT(ToggleCMYK_Colour()));
Table->setCellWidget(0, 0, cp);
cp->setChecked(prefsManager->appPrefs.PrPr_C);
flagsVisible.insert("Cyan", cp);
Table->setItem(1, 1, new QTableWidgetItem( tr("Magenta")));
cp = new QCheckBox(this);
cp->setFocusPolicy(Qt::NoFocus);
//.........这里部分代码省略.........