"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/playlist/layouts/LayoutEditDialog.cpp" between
amarok-2.8.90.tar.gz and amarok-2.9.0.tar.xz

About: Amarok is a powerful music player for Linux and Unix, MacOS X and Windows with an intuitive interface.

LayoutEditDialog.cpp  (amarok-2.8.90):LayoutEditDialog.cpp  (amarok-2.9.0.tar.xz)
skipping to change at line 225 skipping to change at line 225
{ {
m_token.clear(); m_token.clear();
QDialog::close(); QDialog::close();
} }
void LayoutEditDialog::setAutomaticWidth( bool automatic ) void LayoutEditDialog::setAutomaticWidth( bool automatic )
{ {
if( automatic ) if( automatic )
{ {
m_previousWidth = m_width->value(); m_previousWidth = m_width->value();
m_width->setMinimum( 0 ); // without setting the minumum we can't set th e value.. m_width->setMinimum( 0 ); // without setting the minimum we can't set th e value..
m_width->setValue( 0 ); // automatic width is represented by width == 0 m_width->setValue( 0 ); // automatic width is represented by width == 0
} }
else else
{ {
m_width->setValue( m_previousWidth ); m_width->setValue( m_previousWidth );
m_width->setMinimum( 1 ); // set minimum back to 1 since "0" means autom atic m_width->setMinimum( 1 ); // set minimum back to 1 since "0" means autom atic
} }
} }
void LayoutEditDialog::setToken( TokenWithLayout *t ) void LayoutEditDialog::setToken( TokenWithLayout *t )
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)