void CategoryWidget::setName(const QString &name, bool save) { nameLabel->setText(name); if (isCompact()) nameLabel->minimizeMaximumWidth(); if (save) onSetName(); }
void geGUIBase::setName(const char* name) { if(strlen(name)>sizeof(m_szName)) { #ifndef GEAR2D DEBUG_PRINT("ERROR geGUIBase::setName() strlen(name)>sizeof(m_szName)"); #endif } STRCPY(m_szName, name); onSetName(); }