| 1286 | } |
| 1287 | |
| 1288 | void MainWindow::openFiles(const QStringList &files) { |
| 1289 | if (files.size() > 0) { |
| 1290 | switch (DnDOptionDialog::showDndDialog(this, files)) { |
| 1291 | case DnDOptionDialog::ACTION_NEW_HDR: { |
| 1292 | createNewHdr(files); |
| 1293 | } break; |
| 1294 | case DnDOptionDialog::ACTION_OPEN_HDR: { |
| 1295 | foreach (const QString &filename, files) { openFile(filename); } |
| 1296 | } break; |
| 1297 | } |
| 1298 | } |
| 1299 | } |
| 1300 | |
| 1301 | void MainWindow::Text_Under_Icons() { |
| 1302 | m_Ui->toolBar->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); |