[Uml-devel] KDE/kdesdk/umbrello/umbrello
Laurent Montel
montel at kde.org
Sat Apr 30 14:24:51 UTC 2011
SVN commit 1229860 by mlaurent:
Fix warning
M +1 -1 dialogs/activitydialog.cpp
M +1 -1 dialogs/assocpropdlg.cpp
M +3 -3 dialogs/classgenpage.cpp
M +1 -1 dialogs/classpropdlg.cpp
M +1 -1 dialogs/objectnodedialog.cpp
M +1 -1 dialogs/parmpropdlg.cpp
M +1 -1 dialogs/settingsdlg.cpp
M +1 -1 dialogs/statedialog.cpp
M +2 -2 dialogs/umlattributedialog.cpp
M +2 -2 dialogs/umlentityattributedialog.cpp
M +4 -4 dialogs/umloperationdialog.cpp
M +2 -2 dialogs/umltemplatedialog.cpp
M +1 -1 dialogs/umluniqueconstraintdialog.cpp
M +3 -3 dialogs/umlviewdialog.cpp
M +2 -2 refactoring/refactoringassistant.cpp
M +2 -2 widgets/associationwidget.cpp
M +1 -1 widgets/floatingtextwidget.cpp
M +1 -1 widgets/umlwidget.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/activitydialog.cpp #1229859:1229860
@@ -224,7 +224,7 @@
pageItemFont->setHeader( i18n("Font Settings") );
pageItemFont->setIcon( Icon_Utils::DesktopIcon(Icon_Utils::it_Properties_Font) );
addPage( pageItemFont );
- m_pChooser = new KFontChooser( (QWidget*)page, false, QStringList(), false);
+ m_pChooser = new KFontChooser( (QWidget*)page, KFontChooser::NoDisplayFlags, QStringList(), 0);
m_pChooser->setFont( m_pActivityWidget->font() );
}
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/assocpropdlg.cpp #1229859:1229860
@@ -124,7 +124,7 @@
pageItem->setIcon( Icon_Utils::DesktopIcon(Icon_Utils::it_Properties_Font) );
addPage( pageItem );
- m_pChooser = new KFontChooser( (QWidget*)page, false, QStringList(), false);
+ m_pChooser = new KFontChooser( (QWidget*)page, KFontChooser::NoDisplayFlags, QStringList(), false);
m_pChooser->setFont( m_pAssoc->getFont());
m_pChooser->setSampleText(i18n("Association font"));
}
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/classgenpage.cpp #1229859:1229860
@@ -441,7 +441,7 @@
UMLObject *o = m_pUmldoc->findUMLObject(name);
if (o && m_pObject != o) {
KMessageBox::sorry(this, i18n("The name you have chosen\nis already being used.\nThe name has been reset."),
- i18n("Name is Not Unique"), false);
+ i18n("Name is Not Unique"), 0);
m_pClassNameLE->setText( m_pObject->name() );
} else {
m_pObject->setName(name);
@@ -492,7 +492,7 @@
UMLObject * old = m_pUmldoc->findUMLObject(name);
if (old && o != old) {
KMessageBox::sorry(this, i18n("The name you have chosen\nis already being used.\nThe name has been reset."),
- i18n("Name is Not Unique"), false);
+ i18n("Name is Not Unique"), 0);
} else {
o->setName(name);
}
@@ -505,7 +505,7 @@
UMLObject* old = m_pUmldoc->findUMLObject(name);
if (old && o != old) {
KMessageBox::sorry(this, i18n("The name you have chosen\nis already being used.\nThe name has been reset."),
- i18n("Name is Not Unique"), false);
+ i18n("Name is Not Unique"), 0);
} else {
o->setName(name);
}
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/classpropdlg.cpp #1229859:1229860
@@ -402,7 +402,7 @@
pageItem->setHeader( i18n("Font Settings") );
pageItem->setIcon( Icon_Utils::DesktopIcon(Icon_Utils::it_Properties_Font) );
addPage( pageItem );
- m_pChooser = new KFontChooser( (QWidget*)page, false, QStringList(), false);
+ m_pChooser = new KFontChooser( (QWidget*)page, KFontChooser::NoDisplayFlags, QStringList(), 0);
m_pChooser->setFont( m_pWidget->font() );
}
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/objectnodedialog.cpp #1229859:1229860
@@ -221,7 +221,7 @@
pageItemFont->setHeader( i18n("Font Settings") );
pageItemFont->setIcon( Icon_Utils::DesktopIcon(Icon_Utils::it_Properties_Font) );
addPage( pageItemFont );
- m_pChooser = new KFontChooser( (QWidget*)page, false, QStringList(), false);
+ m_pChooser = new KFontChooser( (QWidget*)page, KFontChooser::NoDisplayFlags, QStringList(), 0);
m_pChooser->setFont( m_pObjectNodeWidget->font() );
}
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/parmpropdlg.cpp #1229859:1229860
@@ -262,7 +262,7 @@
// currently only validates whether the name is not null.
if ( getName().trimmed().length() == 0 ) {
KMessageBox::error(this, i18n("You have entered an invalid parameter name."),
- i18n("Parameter Name Invalid"), false);
+ i18n("Parameter Name Invalid"), 0);
return false;
}
return true;
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/settingsdlg.cpp #1229859:1229860
@@ -356,7 +356,7 @@
pageFont->setHeader( i18n("Font Settings") );
pageFont->setIcon( Icon_Utils::DesktopIcon(Icon_Utils::it_Properties_Font) );
addPage( pageFont );
- m_FontWidgets.chooser = new KFontChooser( page, false, QStringList(), false);
+ m_FontWidgets.chooser = new KFontChooser( page, KFontChooser::NoDisplayFlags, QStringList(), 0);
m_FontWidgets.chooser->setFont( m_pOptionState->uiState.font );
}
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/statedialog.cpp #1229859:1229860
@@ -167,7 +167,7 @@
pageFont->setHeader( i18n("Font Settings") );
pageFont->setIcon( Icon_Utils::DesktopIcon(Icon_Utils::it_Properties_Font) );
addPage( pageFont );
- m_pChooser = new KFontChooser( (QWidget*)page, false, QStringList(), false);
+ m_pChooser = new KFontChooser( (QWidget*)page, KFontChooser::NoDisplayFlags, QStringList(), 0);
m_pChooser->setFont( m_pStateWidget->font() );
}
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/umlattributedialog.cpp #1229859:1229860
@@ -158,7 +158,7 @@
QString name = m_pNameLE->text();
if (name.isEmpty()) {
KMessageBox::error(this, i18n("You have entered an invalid attribute name."),
- i18n("Attribute Name Invalid"), false);
+ i18n("Attribute Name Invalid"), 0);
m_pNameLE->setText( m_pAttribute->name() );
return false;
}
@@ -166,7 +166,7 @@
UMLObject *o = pConcept->findChildObject(name);
if (o && o != m_pAttribute) {
KMessageBox::error(this, i18n("The attribute name you have chosen is already being used in this operation."),
- i18n("Attribute Name Not Unique"), false);
+ i18n("Attribute Name Not Unique"), 0);
m_pNameLE->setText( m_pAttribute->name() );
return false;
}
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/umlentityattributedialog.cpp #1229859:1229860
@@ -180,7 +180,7 @@
QString name = m_pNameLE->text();
if (name.isEmpty()) {
KMessageBox::error(this, i18n("You have entered an invalid entity attribute name."),
- i18n("Entity Attribute Name Invalid"), false);
+ i18n("Entity Attribute Name Invalid"), 0);
m_pNameLE->setText( m_pEntityAttribute->name() );
return false;
}
@@ -188,7 +188,7 @@
UMLObject *o = pConcept->findChildObject(name);
if (o && o != m_pEntityAttribute) {
KMessageBox::error(this, i18n("The entity attribute name you have chosen is already being used in this operation."),
- i18n("Entity Attribute Name Not Unique"), false);
+ i18n("Entity Attribute Name Not Unique"), 0);
m_pNameLE->setText( m_pEntityAttribute->name() );
return false;
}
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/umloperationdialog.cpp #1229859:1229860
@@ -303,7 +303,7 @@
m_doc->setModified( true );
} else {
KMessageBox::sorry(this, i18n("The parameter name you have chosen\nis already being used in this operation."),
- i18n("Parameter Name Not Unique"), false);
+ i18n("Parameter Name Not Unique"), 0);
delete newAttribute;
}
} else {
@@ -349,7 +349,7 @@
pAtt = m_operation->findParm( newName ); // search whether a parameter with this name already exists
if( pAtt && pAtt != pOldAtt ) {
KMessageBox::error(this, i18n("The parameter name you have chosen is already being used in this operation."),
- i18n("Parameter Name Not Unique"), false);
+ i18n("Parameter Name Not Unique"), 0);
namingConflict = true;
}
@@ -434,7 +434,7 @@
QString name = m_pNameLE->text();
if( name.length() == 0 ) {
KMessageBox::error(this, i18n("You have entered an invalid operation name."),
- i18n("Operation Name Invalid"), false);
+ i18n("Operation Name Invalid"), 0);
m_pNameLE->setText( m_operation->name() );
return false;
}
@@ -446,7 +446,7 @@
QString msg = i18n("An operation with that signature already exists in %1.\n", classifier->name())
+
i18n("Choose a different name or parameter list.");
- KMessageBox::error(this, msg, i18n("Operation Name Invalid"), false);
+ KMessageBox::error(this, msg, i18n("Operation Name Invalid"), 0);
return false;
}
m_operation->setName( name );
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/umltemplatedialog.cpp #1229859:1229860
@@ -147,7 +147,7 @@
QString name = m_pNameLE->text();
if( name.length() == 0 ) {
KMessageBox::error(this, i18n("You have entered an invalid template name."),
- i18n("Template Name Invalid"), false);
+ i18n("Template Name Invalid"), 0);
m_pNameLE->setText( m_pTemplate->name() );
return false;
}
@@ -157,7 +157,7 @@
UMLObject *o = pClass->findChildObject(name);
if (o && o != m_pTemplate) {
KMessageBox::error(this, i18n("The template parameter name you have chosen is already being used in this operation."),
- i18n("Template Name Not Unique"), false);
+ i18n("Template Name Not Unique"), 0);
m_pNameLE->setText( m_pTemplate->name() );
return false;
}
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/umluniqueconstraintdialog.cpp #1229859:1229860
@@ -239,7 +239,7 @@
QString name = m_pNameLE->text();
if ( name.length() == 0 ) {
KMessageBox::error(this, i18n("You have entered an invalid constraint name."),
- i18n("Constraint Name Invalid"), false);
+ i18n("Constraint Name Invalid"), 0);
m_pNameLE->setText( m_pUniqueConstraint->name() );
return false;
}
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/umlviewdialog.cpp #1229859:1229860
@@ -147,7 +147,7 @@
m_pageFontItem->setIcon( Icon_Utils::DesktopIcon(Icon_Utils::it_Properties_Font) );
addPage(m_pageFontItem);
- m_pChooser = new KFontChooser( (QWidget*)page, false, QStringList(), false);
+ m_pChooser = new KFontChooser( (QWidget*)page, KFontChooser::NoDisplayFlags, QStringList(), 0);
m_pChooser->setFont( m_pView->getOptionState().uiState.font );
}
@@ -208,13 +208,13 @@
UMLView * pView = pDoc->findView( m_pView->getType(), name );
if ( name.length() == 0 ) {
KMessageBox::sorry(this, i18n("The name you have entered is invalid."),
- i18n("Invalid Name"), false);
+ i18n("Invalid Name"), 0);
m_diagramProperties->ui_diagramName->setText( m_pView->getName() );
return;
}
if ( pView && pView != m_pView ) {
KMessageBox::sorry(this, i18n("The name you have entered is not unique."),
- i18n("Name Not Unique"), false);
+ i18n("Name Not Unique"), 0);
m_diagramProperties->ui_diagramName->setText( m_pView->getName() );
return;
}
--- trunk/KDE/kdesdk/umbrello/umbrello/refactoring/refactoringassistant.cpp #1229859:1229860
@@ -805,7 +805,7 @@
QString msg = i18n("An operation with that signature already exists in %1.\n", newClassifier->name())
+
i18n("Choose a different name or parameter list.");
- KMessageBox::error(this, msg, i18n("Operation Name Invalid"), false);
+ KMessageBox::error(this, msg, i18n("Operation Name Invalid"), 0);
return;
}
UMLOperation* newOp = static_cast<UMLOperation*>(op->clone());
@@ -826,7 +826,7 @@
QString msg = i18n("An attribute with that name already exists in %1.\n", newClassifier->name())
+
i18n("Choose a different name.");
- KMessageBox::error(this, msg, i18n("Attribute Name Invalid"), false);
+ KMessageBox::error(this, msg, i18n("Attribute Name Invalid"), 0);
return;
}
UMLAttribute* newAtt = static_cast<UMLAttribute*>(att->clone());
--- trunk/KDE/kdesdk/umbrello/umbrello/widgets/associationwidget.cpp #1229859:1229860
@@ -2744,13 +2744,13 @@
case ListPopupMenu::mt_Change_Font:
font = getFont();
- if( KFontDialog::getFont( font, false, m_pView ) )
+ if( KFontDialog::getFont( font, KFontChooser::NoDisplayFlags, m_pView ) )
lwSetFont(font);
break;
case ListPopupMenu::mt_Change_Font_Selection:
font = getFont();
- if( KFontDialog::getFont( font, false, m_pView ) ) {
+ if( KFontDialog::getFont( font, KFontChooser::NoDisplayFlags, m_pView ) ) {
m_pView->selectionSetFont( font );
m_umldoc->setModified(true);
}
--- trunk/KDE/kdesdk/umbrello/umbrello/widgets/floatingtextwidget.cpp #1229859:1229860
@@ -170,7 +170,7 @@
case ListPopupMenu::mt_Change_Font:
{
QFont font = UMLWidget::font();
- if( KFontDialog::getFont( font, false, m_pView ) ) {
+ if( KFontDialog::getFont( font, KFontChooser::NoDisplayFlags, m_pView ) ) {
if( m_textRole == Uml::tr_Floating || m_textRole == Uml::tr_Seq_Message ) {
setFont( font );
} else if (m_linkWidget) {
--- trunk/KDE/kdesdk/umbrello/umbrello/widgets/umlwidget.cpp #1229859:1229860
@@ -359,7 +359,7 @@
case ListPopupMenu::mt_Change_Font:
case ListPopupMenu::mt_Change_Font_Selection: {
QFont font = UMLWidget::font();
- if (KFontDialog::getFont(font, false, m_pView)) {
+ if (KFontDialog::getFont(font, KFontChooser::NoDisplayFlags, m_pView)) {
UMLApp::app()->executeCommand(new CmdChangeFontSelection(m_pDoc, m_pView, font));
}
}
More information about the umbrello-devel
mailing list