Changeset 138 in tspsg-svn
- Timestamp:
- Sep 24, 2010, 4:27:46 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/resources/common.qrc
r136 r138 2 2 <qresource prefix="/images"> 3 3 <file>tspsg.png</file> 4 <file>icons/qtlogo-64.png</file>5 4 </qresource> 6 5 <qresource prefix="/files"> -
trunk/resources/desktop.qrc
r136 r138 24 24 <file>icons/128x128/preferences-desktop-theme.png</file> 25 25 <file>icons/128x128/preferences-system.png</file> 26 <file>icons/128x128/qtlogo.png</file> 26 27 <file>icons/128x128/roll.png</file> 27 28 <file>icons/128x128/system-software-update.png</file> -
trunk/src/mainwindow.cpp
r135 r138 266 266 QString html = solutionText->document()->toHtml("UTF-8"), 267 267 img = fi.completeBaseName() + "." + format; 268 html.replace(QRegExp("font-family:([^;]*);"), "font-family:\\1, 'DejaVu Sans Mono', 'Courier New', Courier, monospace;"); 268 269 html.replace(QRegExp("<img\\s+src=\"tspsg://graph.pic\""), QString("<img src=\"%1\" alt=\"%2\"").arg(img, tr("Solution Graph"))); 269 270 … … 278 279 if (format == "svg") { 279 280 QSvgGenerator svg; 280 svg.setSize(QSize(graph.width() , graph.height()));281 svg.setSize(QSize(graph.width() + 2, graph.height() + 2)); 281 282 svg.setResolution(graph.logicalDpiX()); 282 283 svg.setFileName(fi.path() + "/" + img); … … 289 290 } else { 290 291 #endif // NOSVG 291 QImage i(graph.width() , graph.height(), QImage::Format_ARGB32);292 QImage i(graph.width() + 2, graph.height() + 2, QImage::Format_ARGB32); 292 293 i.fill(0x00FFFFFF); 293 294 QPainter p; … … 893 894 pic.end(); 894 895 895 QImage i(graph.width() + 1, graph.height() + 1, QImage::Format_RGB32);896 QImage i(graph.width() + 2, graph.height() + 2, QImage::Format_RGB32); 896 897 i.fill(0xFFFFFF); 897 898 pic.begin(&i); … … 1514 1515 actionHelpContextual->setIcon(GET_ICON("help-contextual")); 1515 1516 actionHelpAbout->setIcon(GET_ICON("help-about")); 1517 actionHelpAboutQt->setIcon(QIcon(":/images/icons/"ICON_SIZE"/qtlogo."ICON_FORMAT)); 1516 1518 #endif 1517 1519 // Buttons -
trunk/tspsg.pro
r137 r138 70 70 CONFIG(release, debug|release) { 71 71 OBJECTS_DIR = release 72 DESTDIR = release73 72 D = 74 73 } else { 75 74 OBJECTS_DIR = debug 76 DESTDIR = debug77 75 DEFINES += DEBUG 78 76 # CONFIG += console 79 77 D = d 80 78 } 79 DESTDIR = bin 81 80 TARGET = tspsg$${D} 82 81 83 82 # Saving all intermediate files to tmp directory. 84 MOC_DIR = ./tmp85 RCC_DIR = ./tmp86 UI_DIR = ./tmp83 MOC_DIR = tmp 84 RCC_DIR = tmp 85 UI_DIR = tmp 87 86 88 87 # Include 3rd party libraries -
trunk/ui/mainwindow.ui
r123 r138 481 481 </action> 482 482 <action name="actionHelpAboutQt"> 483 <property name="icon">484 <iconset resource="../resources/common.qrc">485 <normaloff>:/images/icons/qtlogo-64.png</normaloff>:/images/icons/qtlogo-64.png</iconset>486 </property>487 483 <property name="text"> 488 484 <string>About &Qt...</string>
Note: See TracChangeset
for help on using the changeset viewer.