comparison libgui/src/main-window.cc @ 17619:4288b90f18c4

icons for news and release notes widgets * letter_logo_NewsDockWidget.png, graphic_logo_NewsDockWidget.png, letter_logo_ReleaseWidget.png, graphic_logo_ReleaseWidget.png: new icons * libgui/module.mk: new icons files added * resource.qrc: new icons files added * main-window.cc(display_url_in_window): set window title and icon; (notice_settings): set the desired icon for the release notes widget * main-window.h: new variable for icon of release notes widget
author Torsten <ttl@justmail.de>
date Wed, 09 Oct 2013 21:06:40 +0200
parents 9abb1422d60b
children 482222fe5b35
comparison
equal deleted inserted replaced
17618:77eff9c6fb09 17619:4288b90f18c4
266 266
267 QVBoxLayout *vlayout = new QVBoxLayout; 267 QVBoxLayout *vlayout = new QVBoxLayout;
268 vlayout->addWidget (browser); 268 vlayout->addWidget (browser);
269 269
270 w->setLayout (vlayout); 270 w->setLayout (vlayout);
271 w->setWindowTitle (tr ("Octave Release Notes"));
272 w->setWindowIcon (QIcon (_release_notes_icon));
271 w->show (); 273 w->show ();
272 w->raise (); 274 w->raise ();
273 w->activateWindow (); 275 w->activateWindow ();
274 } 276 }
275 277
366 if (widget_icon_data[icon_set_found].name != "NONE") 368 if (widget_icon_data[icon_set_found].name != "NONE")
367 icon = icon + name + ".png"; // add widget name and ext. 369 icon = icon + name + ".png"; // add widget name and ext.
368 widget->setWindowIcon (QIcon (icon)); 370 widget->setWindowIcon (QIcon (icon));
369 } 371 }
370 } 372 }
373 if (widget_icon_data[icon_set_found].name != "NONE")
374 _release_notes_icon = widget_icon_data[icon_set_found].path
375 + "ReleaseWidget.png";
376 else
377 _release_notes_icon = ":/actions/icons/logo.png";
371 378
372 int icon_size = settings->value ("toolbar_icon_size",24).toInt (); 379 int icon_size = settings->value ("toolbar_icon_size",24).toInt ();
373 _main_tool_bar->setIconSize (QSize (icon_size,icon_size)); 380 _main_tool_bar->setIconSize (QSize (icon_size,icon_size));
374 381
375 resource_manager::update_network_settings (); 382 resource_manager::update_network_settings ();