hello guys; Can anyone learn me what is the "#if 1, #else, #endif" meant? Thanks
Code:
printf("press\n"); QDragObject *drobj; if ( pixmap() ) { drobj = new QImageDrag( pixmap()->convertToImage(), this ); #if 1 QPixmap pm; pm.convertFromImage(pixmap()->convertToImage().smoothScale( pixmap()->width()/3,pixmap()->height()/3)); #else // Try it. (void)new DragMoviePlayer(drobj); #endif } else { drobj = new QTextDrag( text(), this ); } drobj->dragCopy(); }