If you only want to distinguish between horizontal and vertical, you can use the following:
Qt Code:
double ImageScaler::scaleFactor(RubberBands::lineType type) const{ return type == RubberBands::horizontal ? _scaleFactorX : _scaleFactorY; }To copy to clipboard, switch view to plain text mode
Without any compiler warnings![]()





Reply With Quote
Bookmarks