]> sigrok.org Git - pulseview.git/blobdiff - test/view/ruler.cpp
Add a tooltip for the "Add decoder" button.
[pulseview.git] / test / view / ruler.cpp
index 400f845e52e3aeba85e2fd07ea8aabbf4f089372..5230e240dd9450f16757480e9e8de9b7cd89eb63 100644 (file)
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <boost/test/unit_test.hpp>
 #include <boost/test/floating_point_comparison.hpp>
+#include <boost/test/unit_test.hpp>
 
 #include "pv/view/ruler.hpp"
 #include "test/test.hpp"
 
-using namespace pv::view;
+using namespace pv::views::TraceView;
 
 namespace {
        QString format(const pv::util::Timestamp& t)
        {
-               return pv::util::format_si_value(t, "s", pv::util::SIPrefix::none, 6);
+               return pv::util::format_time_si(t, pv::util::SIPrefix::none, 6);
        }
 
        const double e = 0.0001;