本文整理汇总了C++中KUser::property方法的典型用法代码示例。如果您正苦于以下问题:C++ KUser::property方法的具体用法?C++ KUser::property怎么用?C++ KUser::property使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KUser
的用法示例。
在下文中一共展示了KUser::property方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: KDialog
UploadDialog::UploadDialog(/*Engine *engine,*/ QWidget *parent) :
KDialog(parent)
{
m_entry = NULL;
// popuplate dialog with stuff
QWidget* _mainWidget = new QWidget(this);
setMainWidget(_mainWidget);
setupUi(_mainWidget);
setCaption(i18n("Share Hot New Stuff"));
setButtons(Ok | Cancel);
setDefaultButton(Cancel);
setModal(false);
mTitleWidget->setText(i18nc("Program name followed by 'Add On Uploader'",
"%1 Add-On Uploader",
KGlobal::activeComponent().aboutData()->programName()));
mTitleWidget->setPixmap(KIcon(KGlobal::activeComponent().aboutData()->programIconName()));
QStringList languagecodes = KGlobal::locale()->languageList();
for (int i = 0; i < languagecodes.count(); i++) {
QString languagecode = languagecodes.at(i);
QString language = KGlobal::locale()->languageCodeToName(languagecode);
mLanguageCombo->addItem(language);
m_languages.insert(language, languagecode);
}
KUser user;
mAuthorEdit->setText(user.property(KUser::FullName).toString());
connect(this, SIGNAL(okClicked()), this, SLOT(slotOk()));
}