struct tm* time=localtime(&(st.st_mtime));
C++ (Qt)void MainWindowImpl::dragMoveEvent ( QDragMoveEvent * event ){ if (!(event->mouseButtons() & Qt::LeftButton)) { this->dropEvent(event); event->ignore(); return; }.......................}
#ifndef _MSC_VER#warning "..."#endif
C++ (Qt) QHeaderView *h = tb->horizontalHeader(); QStyleOptionHeader opt; opt.initFrom(h); int margin = style()->pixelMetric(QStyle::PM_HeaderMargin, &opt, h); h->setMaximumHeight(opt.fontMetrics.height()+(margin/2));